xtensa: fix CONFIG_INIT_STACKS for IRQ stack
The interrupt stack area wasn't being set to a repeating 0xAA pattern at boot as it should be. This is now done in kernel_arch_init(), which runs before interrupts are enabled for the first time. Fixes #7327 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
11c68a10f4
commit
0daf69bb57
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#define _kernel_arch_func__h_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -77,6 +78,11 @@ static ALWAYS_INLINE void kernel_arch_init(void)
|
|||
*/
|
||||
_xt_coproc_init();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_INIT_STACKS
|
||||
memset(K_THREAD_STACK_BUFFER(_interrupt_stack), 0xAA,
|
||||
CONFIG_ISR_STACK_SIZE);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue