commit | a4b82ab4fe290d6edce3b40f7fb93571ad4be627 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Fri May 13 01:07:42 2022 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed May 18 10:54:53 2022 +0200 |
tree | 48c6d6dbe1ca7cd1d09efcaca8ad92bc390542d5 | |
parent | 92409f36def29d6c0da82afab55332dd9595f1d9 [diff] |
riscv: fix IRQ stack guard location _current_cpu->irq_stack is not yet initialized when this is executed on CPU 0. Also the guard area is outside of CONFIG_ISR_STACK_SIZE now e.g. it is within the K_KERNEL_STACK_RESERVED area at the start of the buffer. So simply use z_interrupt_stacks[] directly instead. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>