x86/boot: efistub: Assign global boot_params variable
authorArd Biesheuvel <ardb@kernel.org>
Mon, 16 Oct 2023 15:24:31 +0000 (17:24 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 17 Oct 2023 06:33:13 +0000 (08:33 +0200)
commitdb7724134c26fdf16886a560646d02292563f5a4
treefe881c216a13bbffb69ec5a2e1869935959a0068
parent0d3ad1917996839a5042d18f04e41915cfa1b74a
x86/boot: efistub: Assign global boot_params variable

Now that the x86 EFI stub calls into some APIs exposed by the
decompressor (e.g., kaslr_get_random_long()), it is necessary to ensure
that the global boot_params variable is set correctly before doing so.

Note that the decompressor and the kernel proper carry conflicting
declarations for the global variable 'boot_params' so refer to it via an
alias to work around this.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c
drivers/firmware/efi/libstub/x86-stub.h