arm64: fix stack pointer initialization when CONFIG_STACK_COLORATION disabled

Add else clause to advance stack pointer (x24) by SMP_STACK_SIZE when
CONFIG_STACK_COLORATION is not defined in ARM64 boot code. Ensures each
CPU's stack is properly skipped in multi-core initialization even when
stack coloration/validation is disabled, preventing stack corruption from
overlapping CPU stacks.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-04-27 13:11:57 +08:00
committed by GUIDINGLI
parent 6f4cb9f457
commit 7e02f08a83
+2
View File
@@ -179,6 +179,8 @@ real_start:
str w2, [x24], #4
cmp w1, #0
bne .loop
# else
add x24, x24, #(SMP_STACK_SIZE)
# endif
/* Initialize percpu reg tpidr_el1 */