mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
@@ -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; \
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user