[PATCH v2 2/5] lib: sbi: Introduce sbi_hart_protection_reconfigure() function

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


On Mon, Jul 27, 2026 at 9:56 AM Anup Patel <anup.patel at oss.qualcomm.com> wrote:
>
> Instead of assuming that hart protection reconfiguration is unconfigure
> followed by configure, introduce a separate sbi_hart_protection_reconfigure()
> function and use it in switch_to_next_domain_context().
>
> Signed-off-by: Anup Patel <anup.patel at oss.qualcomm.com>
> ---
>  include/sbi/sbi_hart_protection.h |  7 +++++++
>  lib/sbi/sbi_domain_context.c      |  3 +--
>  lib/sbi/sbi_hart_protection.c     | 28 ++++++++++++++++++++++------
>  3 files changed, 30 insertions(+), 8 deletions(-)
>

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



More information about the opensbi mailing list