From 55d4dc6e990516e2a97539d8b4d4a7c10f51daeb Mon Sep 17 00:00:00 2001
From: Silvan Jegen <s.jegen@gmail.com>
Date: Sat, 24 Aug 2019 16:42:52 +0200
Subject: setup_timer_irq: set correct MIE bit

I got it wrong before but thanks to the internet, I found out about it.
---
 software/first/setup_timer_irq.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'software/first')

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
-- 
cgit v1.2.3