diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-20 08:53:35 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:23 +0530 |
commit | 40b221baffd6bb348b63367784d4f6fcff53c24a (patch) | |
tree | 91e926f1b96ebfb59f34c080ba47beb69a91cb04 /firmware | |
parent | 7487116b41e6c06d3903b600a2231d2a68d0c4a4 (diff) |
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.S | 1 |
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 */ |