diff --git a/tests/C/timer/timer.c b/tests/C/timer/timer.c index c64621d..c4c9ab2 100644 --- a/tests/C/timer/timer.c +++ b/tests/C/timer/timer.c @@ -33,6 +33,9 @@ void register_timer_isr() { asm volatile("csrw mtvec, t0"); asm volatile("li t1, 0x888"); asm volatile("csrw mie, t1"); + + // enable interrupts + asm volatile( "csrs mstatus,1" ); } int main(void) {