summaryrefslogtreecommitdiff
path: root/lib/objects.mk
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2018-12-24 16:49:01 +0530
committerAnup Patel <[email protected]>2018-12-26 11:14:22 +0530
commitb5ae8e8a650d8cb0134f03f53472fb026d2ee6e6 (patch)
tree807e81429152b2375cd4169ca8d8f95e625273d3 /lib/objects.mk
parent96f66f79ca022eb4b591d319675b5ee0854ca45f (diff)
lib: Add misaligned load/store trap handling
We generally don't get misaligned load/store traps from Linux/U-Boot compiled using GCC 8.2 or higher but this is not true with older GCC toolchains. To tackle this we add misaligned load/store trap handling adopted from BBL sources but much more simpler. (Note: BBL sources can be found at https://github.com/riscv/riscv-pk.git) Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/objects.mk')
-rw-r--r--lib/objects.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/objects.mk b/lib/objects.mk
index ed14677f..b70557dd 100644
--- a/lib/objects.mk
+++ b/lib/objects.mk
@@ -18,6 +18,7 @@ lib-objs-y += sbi_hart.o
lib-objs-y += sbi_illegal_insn.o
lib-objs-y += sbi_init.o
lib-objs-y += sbi_ipi.o
+lib-objs-y += sbi_misaligned_ldst.o
lib-objs-y += sbi_system.o
lib-objs-y += sbi_timer.o
lib-objs-y += sbi_trap.o