Don't enable machine interrupts in delegation test

This commit is contained in:
Rodrigo Arias 2024-08-29 15:06:30 +02:00
parent b7d4a10a14
commit 13b9cd8692

View File

@ -175,10 +175,10 @@ index 0ae604a..7b1d95e 100644
+ csr_write(CSR_MIP, 0); + csr_write(CSR_MIP, 0);
+ +
+ /* Enable external timer interrupts */ + /* Enable external timer interrupts */
+ sbi_printf("Enabling MEIE in MIE register\n"); + //sbi_printf("Enabling MEIE in MIE register\n");
+ csr_set(CSR_MIE, MIE_MEIE); /* Needed? */ + //csr_set(CSR_MIE, MIE_MEIE); /* Needed? */
+ sbi_printf("Enabling MIE in MSTATUS register\n"); + //sbi_printf("Enabling MIE in MSTATUS register\n");
+ csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */ + //csr_set(CSR_MSTATUS, MSTATUS_MIE); /* Needed? */
+ +
+ sbi_printf("Switching to supervisor\n"); + sbi_printf("Switching to supervisor\n");
+ +