]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/startup_64: Drop long return to initial_code pointer
authorArd Biesheuvel <ardb@kernel.org>
Mon, 29 Jan 2024 18:05:06 +0000 (19:05 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 Jan 2024 17:31:21 +0000 (18:31 +0100)
commit15675706241887ed7fdad9e91f4bf977b9896d0f
treeba0f437fa50ee66c9049e0f0fbb46a76d110b8b2
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3
x86/startup_64: Drop long return to initial_code pointer

Since

  866b556efa12 ("x86/head/64: Install startup GDT")

the primary startup sequence sets the code segment register (CS) to
__KERNEL_CS before calling into the startup code shared between primary
and secondary boot.

This means a simple indirect call is sufficient here.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240129180502.4069817-24-ardb+git@google.com
arch/x86/kernel/head_64.S