mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-24 04:26:50 +00:00
This was felt to be necessary at one point but actually isn't. - When a thread is initialized to use a particular stack, calls will be made to the MMU/MPU to restrict access to that stack to only that thread. Once a stack is in use, it will not be generally readable even if the buffer exists in application memory space. - If a user thread wants to create a thread, we will need to have some way to ensure that whatever stack buffer passed in is unused and appropriate. Since unused stacks in application memory will be generally accessible, we can just check that the calling thread to k_thread_create() has access to the stack buffer passed in, it won't if the stack is in use. On ARM we had a linker definition for .stacks, but currently stacks are just tagged with __noinit (which is fine). Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
nios2 | ||
riscv32 | ||
x86 | ||
xtensa | ||
cpu.h |