x86/boot: Simplify boot stack setup
authorBrian Gerst <brgerst@gmail.com>
Thu, 21 Mar 2024 18:05:06 +0000 (14:05 -0400)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Mar 2024 19:17:54 +0000 (20:17 +0100)
commit2cb16181a1d1f93a88f2b4640e7638fc0549da93
treedbaada9d4d8b36039e5b3052db5e656ff9e0c956
parent4ae3dc83b047d51485cce1a72be277a110d77c91
x86/boot: Simplify boot stack setup

Define the symbol __top_init_kernel_stack instead of duplicating
the offset from __end_init_task in multiple places.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Uros Bizjak <ubizjak@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20240321180506.89030-1-brgerst@gmail.com
arch/x86/include/asm/processor.h
arch/x86/kernel/head_32.S
arch/x86/kernel/head_64.S
arch/x86/kernel/vmlinux.lds.S
arch/x86/xen/xen-head.S