From: Clément Léger Date: Tue, 9 Apr 2024 10:02:07 +0000 (+0200) Subject: lib: sbi: sse: use PRV_S instead of hardcoded value for mode X-Git-Tag: v1.5~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd007658f8f36e2846ea3f420afe2d0891bd1110;p=platform%2Fkernel%2Fopensbi.git lib: sbi: sse: use PRV_S instead of hardcoded value for mode Rather then passing 1 to sbi_domain_check_addr_range() for supervisor mode, use PRV_S. Signed-off-by: Clément Léger Reviewed-by: Anup Patel --- diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c index fb327f0..76fbee4 100644 --- a/lib/sbi/sbi_sse.c +++ b/lib/sbi/sbi_sse.c @@ -837,8 +837,8 @@ int sbi_sse_attr_check(uint32_t base_attr_id, uint32_t attr_count, return SBI_EINVALID_ADDR; if (!sbi_domain_check_addr_range(sbi_domain_thishart_ptr(), phys_lo, - sizeof(unsigned long) * attr_count, 1, - access)) + sizeof(unsigned long) * attr_count, + PRV_S, access)) return SBI_EINVALID_ADDR; return SBI_OK;