x86/startup_64: Drop long return to initial_code pointer

Since

  866b556efa ("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
This commit is contained in:
Ard Biesheuvel 2024-01-29 19:05:06 +01:00 • committed by Borislav Petkov (AMD)
commit 1567570624