projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3c82c
)
lib: sbi: sse: use PRV_S instead of hardcoded value for mode
author
Clément Léger
<cleger@rivosinc.com>
Tue, 9 Apr 2024 10:02:07 +0000
(12:02 +0200)
committer
Anup Patel
<anup@brainfault.org>
Tue, 7 May 2024 11:59:36 +0000
(17:29 +0530)
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>
lib/sbi/sbi_sse.c
patch
|
blob
|
history
diff --git
a/lib/sbi/sbi_sse.c
b/lib/sbi/sbi_sse.c
index fb327f026567b9cd20a25b40f3281b9447328b5f..76fbee457fc1108a3c67700bc1e4b3406e90c6f6 100644
(file)
--- 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;