Skip to content

Commit

Permalink
arch: x86: Fix ARCH_KERNEL_STACK_OBJ_ALIGN
Browse files Browse the repository at this point in the history
Stack object has to be page aligned when userspace is enabled.

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin committed Jun 26, 2023
1 parent 35ea0e5 commit e6c86a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/arch/x86/thread_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct z_x86_thread_stack_header {
#define ARCH_KERNEL_STACK_OBJ_ALIGN CONFIG_MMU_PAGE_SIZE
#else
#define ARCH_KERNEL_STACK_RESERVED 0
#define ARCH_KERNEL_STACK_OBJ_ALIGN ARCH_STACK_PTR_ALIGN
#define ARCH_KERNEL_STACK_OBJ_ALIGN Z_X86_STACK_BASE_ALIGN
#endif

#endif /* !_ASMLANGUAGE */
Expand Down

0 comments on commit e6c86a5

Please sign in to comment.