summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/sbi/sbi_trap.h5
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