Enable machine interrupts

This commit is contained in:
Rodrigo Arias Mallo 2024-08-21 10:13:45 +02:00
parent cc65500434
commit 2f28f9268a

View File

@ -154,9 +154,9 @@ index 0ae604a..000b89c 100644
+ +
+ sbi_printf("Timer enabled in PLIC\n"); + sbi_printf("Timer enabled in PLIC\n");
+ +
+// /* Enable external timer interrupts */ + /* Enable external timer interrupts */
+// csr_set(CSR_MIE, MIE_MEIE); /* Needed? */ + csr_set(CSR_MIE, MIE_MEIE); /* Needed? */
+// csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */ + csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */
+ +
+ /* + /*
+ * Clear mip CSR before proceeding with init to avoid any spurious + * Clear mip CSR before proceeding with init to avoid any spurious