[PATCH 3/5] lib: sbi: Add domain parameter to hart protection (un)configure()
Rahul Pathak
rahul.pathak at oss.qualcomm.com
Wed Jul 22 04:05:31 PDT 2026
On Fri, Jul 17, 2026 at 1:15 PM Anup Patel <anup.patel at oss.qualcomm.com> wrote:
>
> The switch_to_next_domain_context() already has the pointers to current
> and next domains so pass them as parameters to hart protection configure()
> and unconfigure() callbacks.
>
> Signed-off-by: Anup Patel <anup.patel at oss.qualcomm.com>
> ---
> include/sbi/sbi_hart_protection.h | 25 +++++++++++++++++++------
> lib/sbi/sbi_domain_context.c | 2 +-
> lib/sbi/sbi_hart_pmp.c | 11 ++++++-----
> lib/sbi/sbi_hart_protection.c | 28 +++++++++++++++++-----------
> lib/sbi/sbi_init.c | 6 +++---
> platform/generic/eswin/eic770x.c | 7 ++++---
> 6 files changed, 50 insertions(+), 29 deletions(-)
>
Looks good
Reviewed-by: Rahul Pathak <rahul.pathak at oss.qualcomm.com>
More information about the opensbi
mailing list