x86/boot/compressed: Pull global variable reference into startup32_load_idt()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 22 Nov 2022 16:10:10 +0000 (17:10 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 24 Nov 2022 07:57:41 +0000 (08:57 +0100)
commitd73a257f7f86871c3aac24dc20538e3983096647
treeb76b86623114c1c36e5013c1814d90d8da1daa70
parent6aac80a8da46d70f2ae7ff97c9f45a15c7c9b3ef
x86/boot/compressed: Pull global variable reference into startup32_load_idt()

In preparation for moving startup32_load_idt() out of head_64.S and
turning it into an ordinary function using the ordinary 32-bit calling
convention, pull the global variable reference to boot32_idt up into
startup32_load_idt() so that startup32_set_idt_entry() does not need to
discover its own runtime physical address, which will no longer be
correlated with startup_32 once this code is moved into .text.

While at it, give startup32_set_idt_entry() static linkage.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221122161017.2426828-11-ardb@kernel.org
arch/x86/boot/compressed/head_64.S