Hi,
I am trying to bring up CPU1 on ARM v7 architecture (assume CPU0 already bring up & set c-environment)
using below code, but it hitting with error: "stack smashing detected"
ldr sp, =cpu1_stack
b start_task2
* cpu1_stack define here :
int new_stack[1024]__attribute__ ((aligned(16)))
I used PSCI framework to switch to cpu1
Please share some pointers/inputs whats going wrong here.
Consider also that the ARM ABI defines a "full descending stack" so the stack pointer should be initialized to the top (limit) of the stack region.
Thanks all, appricieate quick help really helpful was able to bring cpu1.
View all questions in Cortex-A / A-Profile forum