kernel: move z_main_stack into pinned section
The z_main_stack is needed before paging mechanism is initialized so put the stack into the pinned section to avoid page faults. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
97f2192195
commit
ebbfde9742
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ LOG_MODULE_REGISTER(os, CONFIG_KERNEL_LOG_LEVEL);
|
|||
struct z_kernel _kernel;
|
||||
|
||||
/* init/main and idle threads */
|
||||
K_THREAD_STACK_DEFINE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
|
||||
K_THREAD_PINNED_STACK_DEFINE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
|
||||
struct k_thread z_main_thread;
|
||||
|
||||
#ifdef CONFIG_MULTITHREADING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue