zephyr/kernel
Ioannis Glaropoulos 5a709f5dc9 kernel: init: use K_THREAD_STACK_SIZEOF when switching to main thread
For architectures with custom swap to main, currently:
- arm
- posix
we are now using K_THREAD_STACK_SIZEOF macro to pass the
main thread stack size to z_arch_switch_to_main_thread().

This does not introduce any behavioral changes for posix;
the K_THREAD_STACK_SIZEOF() simply returns the sizeof()
the stack object. For Arm, this allows us to clean-up one
more occurence of CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT
in kernel_arch_func.h.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-05-24 13:12:55 -04:00
..
include misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
atomic_c.c
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
compiler_stack_protect.c
device.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
errno.c
idle.c
init.c kernel: init: use K_THREAD_STACK_SIZEOF when switching to main thread 2019-05-24 13:12:55 -04:00
int_latency_bench.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
Kconfig kernel: Fix usage of CONFIG_SYS_CLOCK_EXISTS 2019-05-15 10:44:59 +02:00
Kconfig.power_mgmt
mailbox.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
mem_domain.c kernel: mem_domain: update name/doc of API function for partition add 2019-05-02 11:37:38 -04:00
mem_slab.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
mempool.c misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
msg_q.c misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
mutex.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
pipes.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
poll.c misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
queue.c
sched.c kernel/sched.c: add k_usleep() API function 2019-05-21 23:09:16 -04:00
sem.c
smp.c
stack.c kernel: fix k_stack_alloc_init() 2019-05-06 19:47:01 -04:00
system_work_q.c
thread_abort.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
thread.c misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
timeout.c kernel: timeout: add syscall for runtime clk freq 2019-05-22 23:33:55 +02:00
timer.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
userspace_handler.c
userspace.c misc: Replace uses of __builtin_*_overflow() with <misc/math_extras.h>. 2019-05-14 19:53:30 -05:00
version.c
work_q.c kernel: Fix usage of CONFIG_SYS_CLOCK_EXISTS 2019-05-15 10:44:59 +02:00