mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-08-18 01:21:49 +01:00
lib: sbi: Extend hart protection abstraction to allow ID configuration
There are various ID configuration ISA extensions such as RISC-V Worlds, Supervisor domain ID, QoS ID, etc which need to be re-configured upon domain context switch on a hart. Extend hart protection abstraction to support both memory protection and ID configuration ISA extensions. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260727042504.1743250-5-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -470,6 +470,7 @@ static void eswin_eic7700_pmp_unconfigure(struct sbi_scratch *scratch,
|
||||
static struct sbi_hart_protection eswin_eic7700_pmp_protection = {
|
||||
.name = "eic7700_pmp",
|
||||
.rating = -1UL,
|
||||
.type = SBI_HART_PROTECTION_TYPE_MEMORY,
|
||||
.configure = eswin_eic7700_pmp_configure,
|
||||
.unconfigure = eswin_eic7700_pmp_unconfigure,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user