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:
3128501
)
lib: Return ENOTSUPP incase of invalid SBI function ID
author
Atish Patra
<atish.patra@wdc.com>
Wed, 13 Mar 2019 18:08:31 +0000
(11:08 -0700)
committer
Anup Patel
<anup@brainfault.org>
Thu, 14 Mar 2019 15:14:22 +0000
(20:44 +0530)
OpenSBI should show error trace only if any valid SBI function
does not perform as expected.
However, OpenSBI should show notify the caller with a negative
error if given SBI function ID is not valid.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
lib/sbi_ecall.c
patch
|
blob
|
history
diff --git
a/lib/sbi_ecall.c
b/lib/sbi_ecall.c
index
6312469
..
94c6e77
100644
(file)
--- a/
lib/sbi_ecall.c
+++ b/
lib/sbi_ecall.c
@@
-86,6
+86,8
@@
int sbi_ecall_handler(u32 hartid, ulong mcause,
ret = 0;
break;
default:
+ regs->a0 = SBI_ENOTSUPP;
+ ret = 0;
break;
};