[PATCH v2 0/8] Add support for Smepmp
Himanshu Chauhan
hchauhan at ventanamicro.com
Thu Jul 6 03:49:20 PDT 2023
This patch series adds support for the Smepmp specification.
The detection of Smepmp support in platform depends on the
ISA string present in the FDT. If "smepmp" is present in ISA
string in FDT, Smepmp is enabled.
When Smepmp is enabled, the M-mode software's free access
to S/U memory region is revoked. Hence, all the shared
memory access between M-mode and S/U-mode must be done
only after mapping the shared memory.
changes in v2:
* Split into futher patches
- FDT ISA string parsing is now separate patch
- Map/Unmap functions for shared memory are in different patch
* Addressed other general comments.
Himanshu Chauhan (8):
include: sbi: Add macro definitions for mseccfg CSR
lib: sbi: Add functions to manipulate PMP entries
include: sbi: Add Smepmp specific access flags for PMP entries
lib: sbi: Add smepmp in hart extensions
lib: utils: Add detection of Smepmp from ISA string in FDT
lib: sbi: Add support for Smepmp
lib: sbi: Add functions to map/unmap shared memory
lib: sbi: Map/Unmap debug console shared memory buffers
include/sbi/riscv_asm.h | 6 +
include/sbi/riscv_encoding.h | 12 ++
include/sbi/sbi_domain.h | 84 +++++++++++++-
include/sbi/sbi_hart.h | 19 ++++
include/sbi_utils/fdt/fdt_helper.h | 3 +
lib/sbi/riscv_asm.c | 42 +++++++
lib/sbi/sbi_domain.c | 14 ++-
lib/sbi/sbi_ecall_dbcn.c | 3 +
lib/sbi/sbi_hart.c | 177 +++++++++++++++++++++++++----
lib/sbi/sbi_init.c | 22 ++--
lib/utils/fdt/fdt_helper.c | 111 ++++++++++++++++++
platform/generic/platform.c | 9 ++
12 files changed, 464 insertions(+), 38 deletions(-)
--
2.34.1
More information about the opensbi
mailing list