diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 19:33:25 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:04 +0530 |
commit | cb78a482314e8e3c7f423bb13fc50bbd50c59b13 (patch) | |
tree | 5e2ddeca265dc50201f20427aa8d84c71ef8eab5 /lib/sbi/sbi_trap.c | |
parent | 626467cfd96f99230ff5d83f98562f23aee291c3 (diff) |
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_trap.c')
-rw-r--r-- | lib/sbi/sbi_trap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index 9aa6b85..bab0571 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -74,13 +74,11 @@ static void __noreturn sbi_trap_error(const char *msg, int rc, u32 hartid, * * @param regs pointer to register state * @param trap pointer to trap details - * @param scratch pointer to sbi_scratch of current HART * * @return 0 on success and negative error code on failure */ int sbi_trap_redirect(struct sbi_trap_regs *regs, - struct sbi_trap_info *trap, - struct sbi_scratch *scratch) + struct sbi_trap_info *trap) { ulong hstatus, vsstatus, prev_mode; #if __riscv_xlen == 32 @@ -273,7 +271,7 @@ void sbi_trap_handler(struct sbi_trap_regs *regs, trap.tval = mtval; trap.tval2 = mtval2; trap.tinst = mtinst; - rc = sbi_trap_redirect(regs, &trap, scratch); + rc = sbi_trap_redirect(regs, &trap); break; }; |