From 2f28f9268a32b3fa38398ff3275255b423cc1b20 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Aug 2024 10:13:45 +0200 Subject: [PATCH] Enable machine interrupts --- opensbi-test-plic.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opensbi-test-plic.patch b/opensbi-test-plic.patch index fdcf56a..3bd6ba3 100644 --- a/opensbi-test-plic.patch +++ b/opensbi-test-plic.patch @@ -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