commit | 99f36de0a1cda61b2d00fedb40a64a1bb443bca1 | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Tue May 22 14:03:25 2018 -0700 |
committer | Andrew Boie <andrewboie@gmail.com> | Tue May 22 15:59:07 2018 -0700 |
tree | d83e0b68a63e9d1e6b7cf83c3444258cb0e16f16 | |
parent | 9731a0cce982f4d6170428e236b1d4fc19767fe8 [diff] |
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: Andrew Boie <andrew.p.boie@intel.com>