diff options
author | Michael Roth <michael.roth@amd.com> | 2022-02-24 10:56:05 -0600 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-06 17:07:09 +0200 |
commit | 58f3e6b71f42f99ab5d0ab26ddf6e7ee5631f5db (patch) | |
tree | ac6b1e0154d6c952d678c23920ac930385baa812 /arch/x86/boot/compressed/misc.h | |
parent | x86/compressed/acpi: Move EFI detection to helper (diff) | |
download | linux-dev-58f3e6b71f42f99ab5d0ab26ddf6e7ee5631f5db.tar.xz linux-dev-58f3e6b71f42f99ab5d0ab26ddf6e7ee5631f5db.zip |
x86/compressed/acpi: Move EFI system table lookup to helper
Future patches for SEV-SNP-validated CPUID will also require early
parsing of the EFI configuration. Incrementally move the related
code into a set of helpers that can be re-used for that purpose.
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-26-brijesh.singh@amd.com
Diffstat (limited to 'arch/x86/boot/compressed/misc.h')
-rw-r--r-- | arch/x86/boot/compressed/misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h index fede1afa39e9..b2acd3ac6525 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -185,11 +185,17 @@ enum efi_type { #ifdef CONFIG_EFI /* helpers for early EFI config table access */ enum efi_type efi_get_type(struct boot_params *bp); +unsigned long efi_get_system_table(struct boot_params *bp); #else static inline enum efi_type efi_get_type(struct boot_params *bp) { return EFI_TYPE_NONE; } + +static inline unsigned long efi_get_system_table(struct boot_params *bp) +{ + return 0; +} #endif /* CONFIG_EFI */ #endif /* BOOT_COMPRESSED_MISC_H */ |