[PATCH v2 4/5] lib: sbi: Extend hart protection abstraction to allow ID configuration

Rahul Pathak rahul.pathak at oss.qualcomm.com
Mon Jul 27 05:59:41 PDT 2026


On Mon, Jul 27, 2026 at 9:56 AM Anup Patel <anup.patel at oss.qualcomm.com> wrote:
>
> 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 at oss.qualcomm.com>
> ---
>  include/sbi/sbi_hart_protection.h | 16 ++++-
>  lib/sbi/sbi_hart_pmp.c            |  2 +
>  lib/sbi/sbi_hart_protection.c     | 97 +++++++++++++++++++++++++++----
>  lib/sbi/sbi_init.c                |  2 +-
>  platform/generic/eswin/eic770x.c  |  1 +
>  5 files changed, 103 insertions(+), 15 deletions(-)
>

Reviewed-by: Rahul Pathak <rahul.pathak at oss.qualcomm.com>



More information about the opensbi mailing list