zephyr/arch
Ioannis Glaropoulos ad9a35471a arch: arm: fix implementation of _new_thread()
This commit does the following:
- moves the reservation of the area for local thread data
  inside the arch-specific _new_thread() function,
- aligns the end of the thread's stack with the granularity
  of the MPU, already at thread's initialization, moving it
  out of userspace_enter() function. In this way, the local
  thread data are stored inside the thread stack area that
  is, later, assigned unprivileged RW permissions (if thread
  enters user mode).
- passes the right thread stack size information to function
  _new_thread_init(), which stores it into stack_info.start.

As a result, the whole usable User Thread stack area (i.e.
excluding a possible guard area) falls inside the region
programmed as unprivileged RW, during context-switch.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-03-09 11:57:24 -08:00
..
arc kconfig: arch: arm/arc: Remove duplicated CPU_HAS_MPU dependencies 2019-03-09 09:55:41 -05:00
arm arch: arm: fix implementation of _new_thread() 2019-03-09 11:57:24 -08:00
common gen_isr_tables: Fix _sw_isr_table generation for multi-level IRQs 2019-02-06 10:13:25 -05:00
nios2 arch: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
posix kconfig: arch: posix: Remove redundant ARCH_POSIX dep. 2019-03-09 10:02:41 -05:00
riscv32 arch: riscv32: Fix trivial comment 2019-01-31 07:40:24 -05:00
x86 x86: core: Remove extra parenthesis 2019-03-06 22:40:25 -05:00
x86_64 arch/x86_64: Non-kconfig symbols shouldn't look like kconfig 2019-03-08 06:53:39 -05:00
xtensa boards: intel_s1000_crb: fix setting cache attributes 2019-02-15 16:21:50 -05:00
CMakeLists.txt Build: Added support for out-of-tree Arch 2019-02-07 17:00:43 -05:00
Kconfig arch: minor white-space fix in Kconfig 2019-02-28 11:57:25 -08:00