diff options
| author | Bo Gan <[email protected]> | 2025-12-18 02:42:40 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-12-21 20:33:23 +0530 |
| commit | 878c2676e633ff05a8275c2ff76254990e120bed (patch) | |
| tree | 0a5382a9df2d6a30c4913d0c57eb6edb5d19d190 /include/sbi_utils/timer | |
| parent | ed1deab09ef6284d018fbf37ab397dcd4b9f82b8 (diff) | |
lib: sbi: give platform choice of using single memregion to cover OpenSBI
By default the OpenSBI itself is covered by 2 memregions for RX/RW
sections. This is required by platforms with Smepmp to enforce
proper permissions in M mode. Note: M-mode only regions can't
have RWX permissions with Smepmp. Platforms with traditional PMPs
won't be able to benefit from it, as both regions are effectively
RWX in M mode, but usually it's harmless to so. Now we provide
these platforms with an option to disable this logic. It saves 1
PMP entry. For platforms really in short of PMPs, it does make a
difference.
Note: Platform requesting single OpenSBI memregion must be using
traditional (old) PMP. We expect the platform code to do
the right thing.
Signed-off-by: Bo Gan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi_utils/timer')
0 files changed, 0 insertions, 0 deletions
