summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-20 06:23:35 +0300
committerAnup Patel <anup@brainfault.org>2020-03-28 11:02:23 +0300
commit40b221baffd6bb348b63367784d4f6fcff53c24a (patch)
tree91e926f1b96ebfb59f34c080ba47beb69a91cb04 /firmware
parent7487116b41e6c06d3903b600a2231d2a68d0c4a4 (diff)
downloadopensbi-40b221baffd6bb348b63367784d4f6fcff53c24a.tar.xz
lib: sbi_trap: Simplify sbi_trap_handler() API
This patch simplify sbi_trap_handler() API as follows: 1. Remove current hartid local variable because sbi_trap_handler() itself does not need it. 2. Remove scratch parameter because none of the functions directly called by sbi_trap_handler() require it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/fw_base.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index d2aca98..cc6381d 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -556,7 +556,6 @@ _skip_mstatush_save:
/* Call C routine */
add a0, sp, zero
- csrr a1, CSR_MSCRATCH
call sbi_trap_handler
/* Restore all general regisers except SP and T0 */