diff options
| author | Anup Patel <[email protected]> | 2020-09-01 17:50:14 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-09-09 09:32:00 +0530 |
| commit | dcb10c0056f37d3de6ce2794b8e6f7c322ac4d46 (patch) | |
| tree | c334239bce8b67ae28cb42c2500182f56704ff1d | |
| 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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
| -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 c2bd061a..8fe67533 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"; |
