zephyr/arch
Ioannis Glaropoulos 639eb76729 arch: arm: make priv stack guard programming similar to normal guard
This commit aligns the programming of the privileged stack MPU
guard with that of the default stack guard (i.e of supervisor
threads). In particular:
- the guard is programmed BELOW the address indicated in
  arch.priv_stack_start; it is, therefore, similar to the
  default guard that is programmed BELOW stack_info.start.
  An ASSERT is added to confirm that the guard is programmed
  inside the thread privilege stack area.
- the stack fail check is updated accordningly
- arch.priv_stack_start is adjusted in arch_userspace_enter(),
  to make sure we account for a (possible) guard requirement,
  that is, if building with CONFIG_MPU_STACK_GUARD=y.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-06-24 10:16:57 -07:00
..
arc ARC: Mention ARC EM family instead of EM4 template 2019-06-06 14:20:42 -04:00
arm arch: arm: make priv stack guard programming similar to normal guard 2019-06-24 10:16:57 -07:00
common arch: common: nocache: fix linker section definition 2019-06-19 09:08:40 -07:00
nios2 docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
posix doc: fix Kconfig misspellings 2019-06-18 15:07:52 -04:00
riscv32 style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
x86 arch/x86: relocate and rename SYS_X86_RST_* constants 2019-06-24 07:46:24 -07:00
x86_64 docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
xtensa docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00