x86/startup_64: Drop long return to initial_code pointer
Since 866b556e ("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
parent
41bccc98
Please register or sign in to comment