From 298595ba3c95282d14b8ec044c0436c6f0300a0c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Aug 2024 08:16:14 +0200 Subject: [PATCH] Enable also MEIE and MIE --- opensbi-enable-seip.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opensbi-enable-seip.patch b/opensbi-enable-seip.patch index 778ff9e..d1861e5 100644 --- a/opensbi-enable-seip.patch +++ b/opensbi-enable-seip.patch @@ -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); }