Enable MEIP in OpenSBI
This commit is contained in:
parent
91d3e9b163
commit
19dbb857c8
@ -332,6 +332,7 @@
|
|||||||
];
|
];
|
||||||
patches = [
|
patches = [
|
||||||
./opensbi-timer-debug.patch
|
./opensbi-timer-debug.patch
|
||||||
|
./opensbi-enable-meip.patch
|
||||||
#./opensbi-dont-delegate.patch
|
#./opensbi-dont-delegate.patch
|
||||||
#./ox-alveo-platform-plic.patch
|
#./ox-alveo-platform-plic.patch
|
||||||
];
|
];
|
||||||
|
24
opensbi-enable-meip.patch
Normal file
24
opensbi-enable-meip.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/lib/sbi/sbi_irqchip.c b/lib/sbi/sbi_irqchip.c
|
||||||
|
index 0ae604a..dd4592a 100644
|
||||||
|
--- a/lib/sbi/sbi_irqchip.c
|
||||||
|
+++ b/lib/sbi/sbi_irqchip.c
|
||||||
|
@@ -37,8 +37,7 @@ int sbi_irqchip_init(struct sbi_scratch *scratch, bool cold_boot)
|
||||||
|
if (rc)
|
||||||
|
return rc;
|
||||||
|
|
||||||
|
- if (ext_irqfn != default_irqfn)
|
||||||
|
- csr_set(CSR_MIE, MIP_MEIP);
|
||||||
|
+ csr_set(CSR_MIE, MIP_MEIP);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -47,8 +46,7 @@ void sbi_irqchip_exit(struct sbi_scratch *scratch)
|
||||||
|
{
|
||||||
|
const struct sbi_platform *plat = sbi_platform_ptr(scratch);
|
||||||
|
|
||||||
|
- if (ext_irqfn != default_irqfn)
|
||||||
|
- csr_clear(CSR_MIE, MIP_MEIP);
|
||||||
|
+ csr_clear(CSR_MIE, MIP_MEIP);
|
||||||
|
|
||||||
|
sbi_platform_irqchip_exit(plat);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user