aarch64: fix bus error on aarch64 in ThunderX2 misaligned PC

The error happened at: userland/arch/aarch64/lkmc_assert_eq_fail.S but
it does not happen in QEMU userland nor full system, not sure why.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-07 00:00:00 +00:00
parent 9fea200a3b
commit a3780d6de7
2 changed files with 22 additions and 2 deletions

View File

@@ -17,9 +17,9 @@
;
#define LKMC_ASSERT_EQ_REG_32(reg1, reg2) \
str reg2, [sp, -4]!; \
str reg2, [sp, -16]!; \
mov w0, reg1; \
ldr w1, [sp], 4; \
ldr w1, [sp], 16; \
ldr w2, =__LINE__; \
bl lkmc_assert_eq_32; \
;