diff options
| author | Himanshu Chauhan <[email protected]> | 2023-07-12 10:04:33 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-13 12:42:09 +0530 |
| commit | 5dd8db5b10fc03aeded76407aecb731a8a9f1cfa (patch) | |
| tree | fd2babcf5a42a726cf0c0bc0532d89532ac2205e /scripts | |
| parent | f3fdd041acf5bfb9c261c1e8a909e9b0d78c03e8 (diff) | |
lib: sbi: Add support for Smepmp
- If Smepmp is enabled, the access flags of an entry are determined based on
truth table defined in Smepmp.
- First PMP entry (index 0) is reserved.
- Existing boot PMP entries start from index 1.
- Since enabling Smepmp revokes the access privileges of the M-mode software
on S/U-mode region, first PMP entry is used to map/unmap the shared memory
between M and S/U-mode. This allows a temporary access window for the M-mode
software to read/write to S/U-mode memory region.
Signed-off-by: Himanshu Chauhan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
