1f362a81f1
The interrupt stack is used as the system stack during kernel initialization while IRQs are not yet enabled. The sp register is set to z_interrupt_stacks + CONFIG_ISR_STACK_SIZE. CONFIG_ISR_STACK_SIZE only represents the desired usable stack size. This does not take into account the added guard area. Result is a stack whose pointer is much closer to the trigger zone than expected when CONFIG_PMP_STACK_GUARD=y, and the SMP configuration in particular pushes it over the edge during many CI test cases. Worse: during early init we're not quite ready to handle exceptions yet and complete havoc ensues with no meaningful debugging output. Make sure the early assembly code locates the actual top of the stack by generating a constant with its true size. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> |
||
---|---|---|
.. | ||
gen_offset.h | ||
kernel_arch_interface.h | ||
kernel_internal.h | ||
kernel_offsets.h | ||
kernel_tls.h | ||
ksched.h | ||
kswap.h | ||
mmu.h | ||
offsets_short.h |