diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 19:00:02 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 11:02:14 +0300 |
commit | fe37d7da29f67ae8ccc31f06e0f3e6c9a6b58054 (patch) | |
tree | edf5816ec411be7b554ce2bb9af5f17dc633b9a0 /include/sbi/sbi_misaligned_ldst.h | |
parent | 5a7bd0c88d7455de46143ccd9c74a40162bd3611 (diff) | |
download | opensbi-fe37d7da29f67ae8ccc31f06e0f3e6c9a6b58054.tar.xz |
lib: sbi_misaligned_ldst: Remove mcause, scratch and hartid parameters
We remove mcause, scratch and hartid parameters from various functions
for misaligned load/store 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_misaligned_ldst.h')
-rw-r--r-- | include/sbi/sbi_misaligned_ldst.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/sbi/sbi_misaligned_ldst.h b/include/sbi/sbi_misaligned_ldst.h index d95c845..ab27eb4 100644 --- a/include/sbi/sbi_misaligned_ldst.h +++ b/include/sbi/sbi_misaligned_ldst.h @@ -13,16 +13,11 @@ #include <sbi/sbi_types.h> struct sbi_trap_regs; -struct sbi_scratch; -int sbi_misaligned_load_handler(u32 hartid, ulong mcause, - ulong addr, ulong tval2, ulong tinst, - struct sbi_trap_regs *regs, - struct sbi_scratch *scratch); +int sbi_misaligned_load_handler(ulong addr, ulong tval2, ulong tinst, + struct sbi_trap_regs *regs); -int sbi_misaligned_store_handler(u32 hartid, ulong mcause, - ulong addr, ulong tval2, ulong tinst, - struct sbi_trap_regs *regs, - struct sbi_scratch *scratch); +int sbi_misaligned_store_handler(ulong addr, ulong tval2, ulong tinst, + struct sbi_trap_regs *regs); #endif |