diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 17:24:32 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 11:02:11 +0300 |
commit | 5a7bd0c88d7455de46143ccd9c74a40162bd3611 (patch) | |
tree | bb307e808395462a08c27ea38a39a970c8f3ed2c /include/sbi | |
parent | d11c79cd977443defe4260beec976fad29719eaf (diff) | |
download | opensbi-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')
-rw-r--r-- | include/sbi/sbi_illegal_insn.h | 5 |
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 |