[PATCH 1/3] lib: sbi: Don't handle VS-mode ecall in sbi_trap_handler()

Anup Patel anup.patel at wdc.com
Fri Sep 4 08:13:39 EDT 2020


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 at wdc.com>
---
 lib/sbi/sbi_trap.c | 1 -
 1 file changed, 1 deletion(-)

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";
-- 
2.25.1




More information about the opensbi mailing list