From b623f680f6a7aa53de6a1d949d857b37f391c80d Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 16 Mar 2018 16:49:37 +0100 Subject: fixed irq handlers for ci/sd --- code/fe310/eos/timer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'code/fe310/eos/timer.c') diff --git a/code/fe310/eos/timer.c b/code/fe310/eos/timer.c index 5e1b381..b287317 100644 --- a/code/fe310/eos/timer.c +++ b/code/fe310/eos/timer.c @@ -38,6 +38,10 @@ void eos_timer_handle(void) { if (*mtimecmp == 0) clear_csr(mie, MIP_MTIP); } +void handle_m_time_interrupt(void) { + return eos_timer_handle(); +} + void eos_timer_init(void) { volatile uint64_t *mtimecmp = (uint64_t *) (CLINT_CTRL_ADDR + CLINT_MTIMECMP); *mtimecmp = 0; -- cgit v1.2.3