Skip to content
Commit 7605619c authored by Daniel Leung's avatar Daniel Leung Committed by Christopher Friedt
Browse files

x86: userspace: page in stack before starting user thread



If generic section is not present at boot, the thread stack
may not be in physical memory. Unconditionally page in the stack
instead of relying on page fault to speed up a little bit
on starting the thread.

Also, this prevents a double fault during thread setup when
setting up stack permission in z_x86_userspace_enter().

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent ea0f9474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment