Skip to content
Commit 99f36de0 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

arm: userspace: fix initial user sp location



The initial user stack pointer gets rounded to STACK_ALIGN_SIZE,
which can be much finer granularity than MPU regions. With
certain stack size values passed to k_thread_create(), the stack
pointer can be set past the defined region for the user thread's
stack, causing an immediate MPU fault.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 9731a0cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment