mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
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:
@@ -441,7 +441,7 @@ __cpu3_start:
|
|||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
.type .Lstkinit, %object
|
.type .Lstkinit, %object
|
||||||
.Lstkinit:
|
.Lstkinit:
|
||||||
.long SMP_STACK_WORDS
|
.long SMP_STACK_WORDS - (XCPTCONTEXT_SIZE / 4)
|
||||||
.long STACK_COLOR /* Stack coloration word */
|
.long STACK_COLOR /* Stack coloration word */
|
||||||
.size .Lstkinit, . -.Lstkinit
|
.size .Lstkinit, . -.Lstkinit
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user