diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2019-08-24 16:42:52 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2019-08-24 16:42:52 +0200 |
commit | 55d4dc6e990516e2a97539d8b4d4a7c10f51daeb (patch) | |
tree | e22d3c4753d889df92df9eac06be524ec3535ecf | |
parent | 98659d919772cdee372ab4a4d63bd68fa469174e (diff) |
setup_timer_irq: set correct MIE bit
I got it wrong before but thanks to the internet, I found out about it.
-rw-r--r-- | software/first/setup_timer_irq.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/software/first/setup_timer_irq.S b/software/first/setup_timer_irq.S index bba356d..6c75d67 100644 --- a/software/first/setup_timer_irq.S +++ b/software/first/setup_timer_irq.S @@ -25,7 +25,7 @@ setup_timer_irq: sw t0, 4(t2) # store the first number to the upper part first sw t1, 0(t2) # then the second to the lower part - csrsi mstatus, 0x4 # set 3rd bit to activate machine interrupts. + csrsi mstatus, 0x8 # set 4rd bit to activate machine interrupts. lw ra, 12(sp) # load return address addi sp, sp, 16 # deallocate stack frame |