diff options
| author | Uros Majstorovic <majstor@majstor.org> | 2018-03-16 16:49:37 +0100 | 
|---|---|---|
| committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-16 16:49:37 +0100 | 
| commit | b623f680f6a7aa53de6a1d949d857b37f391c80d (patch) | |
| tree | 16f5bd03a46c748dcf5baedc3f3c88ca508860a8 /code/fe310/eos/timer.c | |
| parent | b1c3ee27894d33d9fcfca4ea4d0ccfb6d4cfc83e (diff) | |
fixed irq handlers for ci/sd
Diffstat (limited to 'code/fe310/eos/timer.c')
| -rw-r--r-- | code/fe310/eos/timer.c | 4 | 
1 files changed, 4 insertions, 0 deletions
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;  | 
