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 /include/sbi/sbi_trap.h | |
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 'include/sbi/sbi_trap.h')
-rw-r--r-- | include/sbi/sbi_trap.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h index 54ccea7..5d0962f 100644 --- a/include/sbi/sbi_trap.h +++ b/include/sbi/sbi_trap.h @@ -202,13 +202,10 @@ struct sbi_trap_info { unsigned long tinst; }; -struct sbi_scratch; - int sbi_trap_redirect(struct sbi_trap_regs *regs, struct sbi_trap_info *trap); -void sbi_trap_handler(struct sbi_trap_regs *regs, - struct sbi_scratch *scratch); +void sbi_trap_handler(struct sbi_trap_regs *regs); #endif |