mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-12 01:49:48 +00:00
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>
18 lines
486 B
C
18 lines
486 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <linux/efi.h>
|
|
|
|
extern void trampoline_32bit_src(void *, bool);
|
|
extern const u16 trampoline_ljmp_imm_offset;
|
|
|
|
void efi_adjust_memory_range_protection(unsigned long start,
|
|
unsigned long size);
|
|
|
|
#ifdef CONFIG_X86_64
|
|
efi_status_t efi_setup_5level_paging(void);
|
|
void efi_5level_switch(void);
|
|
#else
|
|
static inline efi_status_t efi_setup_5level_paging(void) { return EFI_SUCCESS; }
|
|
static inline void efi_5level_switch(void) {}
|
|
#endif
|