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"); +