lib: utils/irqchip: Add shared MMIO region for PLIC in root domain

On platforms with Smepmp, the MMIO regions accessed by M-mode need
to be explicitly marked with M-mode only read/write or shared (both
(M-mode and S-mode) read/write permission.

If the above is not done then runtime PLIC access from M-mode on
platforms with Smepmp will result in access fault when further
results in CPU hotplug not working.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
Anup Patel authored and Anup Patel committed 2023-12-19 15:56:37 +05:30
1 parent 80169b25f8
commit cdebae2cc9
9 files changed
+21 -1

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
struct plic_data {
unsigned long addr;
unsigned long size;
unsigned long num_src;
};