summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_illegal_insn.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-19 17:24:32 +0300
committerAnup Patel <anup@brainfault.org>2020-03-28 11:02:11 +0300
commit5a7bd0c88d7455de46143ccd9c74a40162bd3611 (patch)
treebb307e808395462a08c27ea38a39a970c8f3ed2c /include/sbi/sbi_illegal_insn.h
parentd11c79cd977443defe4260beec976fad29719eaf (diff)
downloadopensbi-5a7bd0c88d7455de46143ccd9c74a40162bd3611.tar.xz
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 'include/sbi/sbi_illegal_insn.h')
-rw-r--r--include/sbi/sbi_illegal_insn.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/sbi/sbi_illegal_insn.h b/include/sbi/sbi_illegal_insn.h
index 1e1f74a..0397935 100644
--- a/include/sbi/sbi_illegal_insn.h
+++ b/include/sbi/sbi_illegal_insn.h
@@ -13,10 +13,7 @@
#include <sbi/sbi_types.h>
struct sbi_trap_regs;
-struct sbi_scratch;
-int sbi_illegal_insn_handler(u32 hartid, ulong mcause, ulong insn,
- struct sbi_trap_regs *regs,
- struct sbi_scratch *scratch);
+int sbi_illegal_insn_handler(ulong insn, struct sbi_trap_regs *regs);
#endif