aboutsummaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_trap.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-19 21:55:12 +0530
committerAnup Patel <anup@brainfault.org>2020-03-28 13:32:20 +0530
commit7487116b41e6c06d3903b600a2231d2a68d0c4a4 (patch)
tree1ed0174c5271e57a4554d8bdd6ffea16cbe60b2a /lib/sbi/sbi_trap.c
parentfe37d7da29f67ae8ccc31f06e0f3e6c9a6b58054 (diff)
lib: sbi_ecall: Remove mcause, scratch and hartid parameters
We remove mcause, scratch and hartid parameters from various functions for ecall handling because we can always get current HART id and current scratch pointer using just one CSR access. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c
index b06b33f..7f8f30f 100644
--- a/lib/sbi/sbi_trap.c
+++ b/lib/sbi/sbi_trap.c
@@ -256,7 +256,7 @@ void sbi_trap_handler(struct sbi_trap_regs *regs,
break;
case CAUSE_SUPERVISOR_ECALL:
case CAUSE_HYPERVISOR_ECALL:
- rc = sbi_ecall_handler(hartid, mcause, regs, scratch);
+ rc = sbi_ecall_handler(regs);
msg = "ecall handler failed";
break;
default: