commit | 7605619c1ed815edd570e2c9b7f7f3457dbed081 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Thu Jul 15 12:52:21 2021 -0700 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Thu Aug 26 21:16:22 2021 -0400 |
tree | 91b86eeffee92d0b0683f16549fb02877a4ba96f | |
parent | ea0f9474f7473df27603ae310812308dc3b4fcae [diff] |
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: Daniel Leung <daniel.leung@intel.com>