The main and idle threads, and their associated stacks, were being referenced in various parts of the kernel with no central definition. Expose these in kernel_internal.h and namespace with z_ appropriately. The main and idle threads were being defined statically, with another variable exposed to contain their pointer value. This wastes a bit of memory and isn't accessible to user threads anyway, just expose the actual thread objects. Redundance MAIN_STACK_SIZE and IDLE_STACK_SIZE defines in init.c removed, just use the Kconfigs they derive from. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
|---|---|---|
| .. | ||
| futex | ||
| mem_protect | ||
| obj_validation | ||
| protection | ||
| stack_random | ||
| stackprot | ||
| sys_sem | ||
| syscalls | ||
| userspace | ||
| x86_mmu_api | ||