diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 19:54:32 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:11 +0530 |
commit | 5a7bd0c88d7455de46143ccd9c74a40162bd3611 (patch) | |
tree | bb307e808395462a08c27ea38a39a970c8f3ed2c /lib/sbi/sbi_trap.c | |
parent | d11c79cd977443defe4260beec976fad29719eaf (diff) |
lib: sbi_illegal_insn: Remove mcause, scratch and hartid parameters
We remove mcause, scratch and hartid parameters from various
functions for illegal instruction 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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index bab0571..36702ca 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -243,8 +243,7 @@ void sbi_trap_handler(struct sbi_trap_regs *regs, switch (mcause) { case CAUSE_ILLEGAL_INSTRUCTION: - rc = sbi_illegal_insn_handler(hartid, mcause, mtval, - regs, scratch); + rc = sbi_illegal_insn_handler(mtval, regs); msg = "illegal instruction handler failed"; break; case CAUSE_MISALIGNED_LOAD: |