armv7-a: smp: fix stack coloration

Summary:
- The stack pointer is subtracted to alloc xcptcontext area
  in the __cpu?_start block
- Fix the stack coloration overrun to the previous cpu's xcpt area

Impact:
- armv7-a's smp configuration

Testing:
- smp and ostest on sabre-6quad:smp w/ qemu

Signed-off-by: Oki Minabe <minabe.oki@gmail.com>
This commit is contained in:
Oki Minabe 2022-05-03 17:29:50 +09:00 committed by Xiang Xiao
parent 0908c67d73
commit 0ba891c1b0

View File

@ -441,7 +441,7 @@ __cpu3_start:
#ifdef CONFIG_STACK_COLORATION
.type .Lstkinit, %object
.Lstkinit:
.long SMP_STACK_WORDS
.long SMP_STACK_WORDS - (XCPTCONTEXT_SIZE / 4)
.long STACK_COLOR /* Stack coloration word */
.size .Lstkinit, . -.Lstkinit
#endif