diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 17:37:54 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:01 +0530 |
commit | 626467cfd96f99230ff5d83f98562f23aee291c3 (patch) | |
tree | 3393115a6749f38cdb23a1ef0e1e3834165db72e /lib/sbi/sbi_misaligned_ldst.c | |
parent | 1de66d170e71fb94732ffc80dcf4e70e623c4f7a (diff) |
lib: Remove scratch parameter from unpriv load/store functions
The scratch parameter of unpriv load/store functions is now redundant
hence we remove it.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_misaligned_ldst.c')
-rw-r--r-- | lib/sbi/sbi_misaligned_ldst.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sbi/sbi_misaligned_ldst.c b/lib/sbi/sbi_misaligned_ldst.c index b59efa0..73814c5 100644 --- a/lib/sbi/sbi_misaligned_ldst.c +++ b/lib/sbi/sbi_misaligned_ldst.c @@ -42,7 +42,7 @@ int sbi_misaligned_load_handler(u32 hartid, ulong mcause, * Bit[0] == 0 implies trapped instruction value is * zero or special value. */ - insn = sbi_get_insn(regs->mepc, scratch, &uptrap); + insn = sbi_get_insn(regs->mepc, &uptrap); if (uptrap.cause) { uptrap.epc = regs->mepc; return sbi_trap_redirect(regs, &uptrap, scratch); @@ -120,7 +120,7 @@ int sbi_misaligned_load_handler(u32 hartid, ulong mcause, val.data_u64 = 0; for (i = 0; i < len; i++) { val.data_bytes[i] = sbi_load_u8((void *)(addr + i), - scratch, &uptrap); + &uptrap); if (uptrap.cause) { uptrap.epc = regs->mepc; return sbi_trap_redirect(regs, &uptrap, scratch); @@ -162,7 +162,7 @@ int sbi_misaligned_store_handler(u32 hartid, ulong mcause, * Bit[0] == 0 implies trapped instruction value is * zero or special value. */ - insn = sbi_get_insn(regs->mepc, scratch, &uptrap); + insn = sbi_get_insn(regs->mepc, &uptrap); if (uptrap.cause) { uptrap.epc = regs->mepc; return sbi_trap_redirect(regs, &uptrap, scratch); @@ -230,7 +230,7 @@ int sbi_misaligned_store_handler(u32 hartid, ulong mcause, for (i = 0; i < len; i++) { sbi_store_u8((void *)(addr + i), val.data_bytes[i], - scratch, &uptrap); + &uptrap); if (uptrap.cause) { uptrap.epc = regs->mepc; return sbi_trap_redirect(regs, &uptrap, scratch); |