summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_ecall.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-19 17:03:25 +0300
committerAnup Patel <anup@brainfault.org>2020-03-28 11:02:04 +0300
commitcb78a482314e8e3c7f423bb13fc50bbd50c59b13 (patch)
tree5e2ddeca265dc50201f20427aa8d84c71ef8eab5 /lib/sbi/sbi_ecall.c
parent626467cfd96f99230ff5d83f98562f23aee291c3 (diff)
downloadopensbi-cb78a482314e8e3c7f423bb13fc50bbd50c59b13.tar.xz
lib: sbi_trap: Remove scratch parameter from sbi_trap_redirect()
The scratch parameter of sbi_trap_redirect() is not used hence we remove it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_ecall.c')
-rw-r--r--lib/sbi/sbi_ecall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_ecall.c b/lib/sbi/sbi_ecall.c
index 6acb1b7..230dfa3 100644
--- a/lib/sbi/sbi_ecall.c
+++ b/lib/sbi/sbi_ecall.c
@@ -111,7 +111,7 @@ int sbi_ecall_handler(u32 hartid, ulong mcause, struct sbi_trap_regs *regs,
if (ret == SBI_ETRAP) {
trap.epc = regs->mepc;
- sbi_trap_redirect(regs, &trap, scratch);
+ sbi_trap_redirect(regs, &trap);
} else {
/*
* This function should return non-zero value only in case of