diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-09-01 15:20:14 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-09-09 07:02:00 +0300 |
commit | dcb10c0056f37d3de6ce2794b8e6f7c322ac4d46 (patch) | |
tree | c334239bce8b67ae28cb42c2500182f56704ff1d /lib/sbi | |
parent | ebc8ebc0f84618b2cef8b9b77cc705e4c7c2d8d6 (diff) | |
download | opensbi-dcb10c0056f37d3de6ce2794b8e6f7c322ac4d46.tar.xz |
lib: sbi: Don't handle VS-mode ecall in sbi_trap_handler()
The VS-mode ecall is supposed to be handled by HS-mode so
sbi_trap_handler() should fallback to default case for
VS-mode ecall trap.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi')
-rw-r--r-- | lib/sbi/sbi_trap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index c2bd061..8fe6753 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -251,7 +251,6 @@ void sbi_trap_handler(struct sbi_trap_regs *regs) rc = sbi_misaligned_store_handler(mtval, mtval2, mtinst, regs); msg = "misaligned store handler failed"; break; - case CAUSE_SUPERVISOR_ECALL: case CAUSE_HYPERVISOR_ECALL: rc = sbi_ecall_handler(regs); msg = "ecall handler failed"; |