Skip to content

Commit fd48c9e

Browse files
committed
aarch64: fix syntax error in asm
The generated code does not restore user sp when returning from exception handler. That's how a bug hides in plain sight. The assembler does not even give error! Signed-off-by: Tianhao <[email protected]> Suggested-by: CharlyYu <[email protected]>
1 parent cb08a51 commit fd48c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qlib/kernel/arch/aarch64/exception.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
ldp x30, x9, [sp, #16 * 15]
5858
msr elr_el1, x10
5959
msr spsr_el1, x11
60-
.if elx == 0
60+
.if \elx == 0
6161
msr sp_el0, x9
6262
.endif
6363

0 commit comments

Comments
 (0)