diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-09-01 17:50:14 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-09-09 09:32:00 +0530 |
commit | dcb10c0056f37d3de6ce2794b8e6f7c322ac4d46 (patch) | |
tree | c334239bce8b67ae28cb42c2500182f56704ff1d /lib/sbi/sbi_trap.c | |
parent | ebc8ebc0f84618b2cef8b9b77cc705e4c7c2d8d6 (diff) |
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/sbi_trap.c')
-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"; |