diff options
| author | Anup Patel <[email protected]> | 2020-03-19 19:54:32 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-03-28 13:32:11 +0530 |
| commit | 5a7bd0c88d7455de46143ccd9c74a40162bd3611 (patch) | |
| tree | bb307e808395462a08c27ea38a39a970c8f3ed2c /include | |
| 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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
| -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 1e1f74a1..0397935e 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 |
