aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBo Gan <ganboing@gmail.com>2024-03-05 18:35:37 -0800
committerAnup Patel <anup@brainfault.org>2024-03-11 10:48:00 +0530
commit9221fe58d1e65d0a1b6f62098c814994ce04dd5d (patch)
tree59b97cf0d62394f02a51332c7cbb0d8b3d0c0a81 /include
parenta17600c186e80bca6d8641757d7ff1ccbf8fface (diff)
downloadopensbi-9221fe58d1e65d0a1b6f62098c814994ce04dd5d.zip
opensbi-9221fe58d1e65d0a1b6f62098c814994ce04dd5d.tar.gz
opensbi-9221fe58d1e65d0a1b6f62098c814994ce04dd5d.tar.bz2
lib: sbi: change prototype of sbi_misaligned_load/store_handler
This simplifies both handlers such that when the handler needs to redirect the original trap, it's readily available. Signed-off-by: Bo Gan <ganboing@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_trap_ldst.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sbi/sbi_trap_ldst.h b/include/sbi/sbi_trap_ldst.h
index 9bbd237..5f0ed92 100644
--- a/include/sbi/sbi_trap_ldst.h
+++ b/include/sbi/sbi_trap_ldst.h
@@ -11,13 +11,14 @@
#define __SBI_TRAP_LDST_H__
#include <sbi/sbi_types.h>
+#include <sbi/sbi_trap.h>
struct sbi_trap_regs;
-int sbi_misaligned_load_handler(ulong addr, ulong tval2, ulong tinst,
- struct sbi_trap_regs *regs);
+int sbi_misaligned_load_handler(struct sbi_trap_regs *regs,
+ const struct sbi_trap_info *orig_trap);
-int sbi_misaligned_store_handler(ulong addr, ulong tval2, ulong tinst,
- struct sbi_trap_regs *regs);
+int sbi_misaligned_store_handler(struct sbi_trap_regs *regs,
+ const struct sbi_trap_info *orig_trap);
#endif