x86/head_64: Store boot_params pointer in callee save register
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Aug 2023 16:26:59 +0000 (18:26 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Aug 2023 17:20:32 +0000 (19:20 +0200)
commit2f69a81ad6873231a2ae78d5ade3263ec54a4c9c
tree9d4e19ac99c62eb614a41a618caad7b81aaf5224
parent264b82fdb4989cf6a44a2bcd0c6ea05e8026b2ac
x86/head_64: Store boot_params pointer in callee save register

Instead of pushing/popping %RSI to/from the stack every time a function
is called from startup_64(), store it in a callee preserved register
and grab it from there when its value is actually needed.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230807162720.545787-3-ardb@kernel.org
arch/x86/kernel/head_64.S