Enable also MEIE and MIE

This commit is contained in:
Rodrigo Arias Mallo 2024-08-21 08:16:14 +02:00
parent a858b3548e
commit 298595ba3c

View File

@ -8,8 +8,8 @@ index 0ae604a..94832c8 100644
- if (ext_irqfn != default_irqfn)
- csr_set(CSR_MIE, MIP_MEIP);
+ csr_set(CSR_MIE, MIP_SEIP);
+ csr_set(CSR_MSTATUS, MSTATUS_SIE);
+ csr_set(CSR_MIE, MIP_MEIP | MIP_SEIP);
+ csr_set(CSR_MSTATUS, MSTATUS_MIE | MSTATUS_SIE);
return 0;
}
@ -19,8 +19,8 @@ index 0ae604a..94832c8 100644
- if (ext_irqfn != default_irqfn)
- csr_clear(CSR_MIE, MIP_MEIP);
+ csr_clear(CSR_MIE, MIP_SEIP);
+ csr_clear(CSR_MSTATUS, MSTATUS_SIE);
+ csr_clear(CSR_MIE, MIP_MEIP | MIP_SEIP);
+ csr_clear(CSR_MSTATUS, MSTATUS_MIE | MSTATUS_SIE);
sbi_platform_irqchip_exit(plat);
}