diff options
| author | Himanshu Chauhan <[email protected]> | 2023-01-09 05:20:42 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-01-09 18:04:28 +0530 |
| commit | 59a08cd7d632bb2394a29956497dfe7829099997 (patch) | |
| tree | e0762a2ad25217259cb7f31c718ba5ef6fd5e128 /lib/utils/ipi | |
| parent | 3e2f573e707e78c7e00a977b28ce917ff051e69d (diff) | |
lib: utils: Add M-mode {R/W} flags to the MMIO regions
Add the M-mode readable/writable flags to mmio regions
of various drivers.
Signed-off-by: Himanshu Chauhan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Tested-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/ipi')
| -rw-r--r-- | lib/utils/ipi/aclint_mswi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/utils/ipi/aclint_mswi.c b/lib/utils/ipi/aclint_mswi.c index 832e223f..6b004cb9 100644 --- a/lib/utils/ipi/aclint_mswi.c +++ b/lib/utils/ipi/aclint_mswi.c @@ -88,7 +88,10 @@ int aclint_mswi_cold_init(struct aclint_mswi_data *mswi) region_size = ((mswi->size - pos) < ACLINT_MSWI_ALIGN) ? (mswi->size - pos) : ACLINT_MSWI_ALIGN; sbi_domain_memregion_init(mswi->addr + pos, region_size, - SBI_DOMAIN_MEMREGION_MMIO, ®); + (SBI_DOMAIN_MEMREGION_MMIO | + SBI_DOMAIN_MEMREGION_M_READABLE | + SBI_DOMAIN_MEMREGION_M_WRITABLE), + ®); rc = sbi_domain_root_add_memregion(®); if (rc) return rc; |
