Please sign in to comment.
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>
- Loading branch information...
Showing with 3 additions and 8 deletions.