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 <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Clément Léger
2024-04-09 12:02:07 +02:00
committed by Anup Patel
parent ce3c82cb2e
commit bd007658f8

View File

@@ -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;