From ae379f7b9a9a691242ce1660660f5fe66a372cf6 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Aug 2024 12:29:52 +0200 Subject: [PATCH] Enable machine mode interrupts --- opensbi-test-plic.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opensbi-test-plic.patch b/opensbi-test-plic.patch index f676341..6222ef9 100644 --- a/opensbi-test-plic.patch +++ b/opensbi-test-plic.patch @@ -1,5 +1,5 @@ diff --git a/lib/sbi/sbi_irqchip.c b/lib/sbi/sbi_irqchip.c -index 0ae604a..c446e60 100644 +index 0ae604a..7b1d95e 100644 --- a/lib/sbi/sbi_irqchip.c +++ b/lib/sbi/sbi_irqchip.c @@ -9,6 +9,9 @@ @@ -175,10 +175,10 @@ index 0ae604a..c446e60 100644 + csr_write(CSR_MIP, 0); + + /* Enable external timer interrupts */ -+ //sbi_printf("Enabling MEIE in MIE register\n"); -+ //csr_set(CSR_MIE, MIE_MEIE); /* Needed? */ -+ //sbi_printf("Enabling MIE in MSTATUS register\n"); -+ //csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */ ++ sbi_printf("Enabling MEIE in MIE register\n"); ++ csr_set(CSR_MIE, MIE_MEIE); /* Needed? */ ++ sbi_printf("Enabling MIE in MSTATUS register\n"); ++ csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */ + + sbi_printf("Switching to supervisor\n"); +