forked from rarias/nixos-riscv
Enable machine interrupts
This commit is contained in:
@@ -154,9 +154,9 @@ index 0ae604a..000b89c 100644
|
||||
+
|
||||
+ sbi_printf("Timer enabled in PLIC\n");
|
||||
+
|
||||
+// /* Enable external timer interrupts */
|
||||
+// csr_set(CSR_MIE, MIE_MEIE); /* Needed? */
|
||||
+// csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */
|
||||
+ /* Enable external timer interrupts */
|
||||
+ csr_set(CSR_MIE, MIE_MEIE); /* Needed? */
|
||||
+ csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */
|
||||
+
|
||||
+ /*
|
||||
+ * Clear mip CSR before proceeding with init to avoid any spurious
|
||||
|
||||
Reference in New Issue
Block a user