x86: pin z_x86_set_stack_guard()

This function should be pinned in memory instead of simply
putting it in the boot section, as this function will be
used when new threads are created at runtime.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-07-22 13:18:09 -07:00 committed by Christopher Friedt
commit c2a01af003

View file

@ -1238,7 +1238,7 @@ void z_x86_mmu_init(void)
}
#if CONFIG_X86_STACK_PROTECTION
__boot_func
__pinned_func
void z_x86_set_stack_guard(k_thread_stack_t *stack)
{
/* Applied to all page tables as this affects supervisor mode.