summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2024-03-21 19:05:06 +0100
committerIngo Molnar <mingo@kernel.org>2024-03-21 20:17:54 +0100
commit2cb16181a1d1f93a88f2b4640e7638fc0549da93 (patch)
treedbaada9d4d8b36039e5b3052db5e656ff9e0c956 /arch/x86/xen
parentMerge tag 'irq-urgent-2024-03-17' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-2cb16181a1d1f93a88f2b4640e7638fc0549da93.tar.xz
linux-2cb16181a1d1f93a88f2b4640e7638fc0549da93.zip
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
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/xen-head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
index 04101b984f24..758bcd47b72d 100644
--- a/arch/x86/xen/xen-head.S
+++ b/arch/x86/xen/xen-head.S
@@ -49,7 +49,7 @@ SYM_CODE_START(startup_xen)
ANNOTATE_NOENDBR
cld
- leaq (__end_init_task - TOP_OF_KERNEL_STACK_PADDING - PTREGS_SIZE)(%rip), %rsp
+ leaq __top_init_kernel_stack(%rip), %rsp
/* Set up %gs.
*