enable interrupts writing to mstatus

This commit is contained in:
mariusmonton 2019-01-22 19:31:13 +01:00
parent fa3b178f79
commit a8943a111f
1 changed files with 3 additions and 0 deletions

View File

@ -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) {