]> git.baikalelectronics.ru Git - kernel.git/commit
x86/compressed/acpi: Move EFI detection to helper
authorMichael Roth <michael.roth@amd.com>
Wed, 9 Feb 2022 18:10:18 +0000 (12:10 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 15:07:02 +0000 (17:07 +0200)
commite7aad292a3265a6f11e2e73f9e9fad65d369674c
treeef27143e39a42d797f2d42211412da99e61e523e
parent688f211ae69d9a4334915681fec8e60d32c1a363
x86/compressed/acpi: Move EFI detection 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.

First, carve out the functionality which determines the EFI environment
type the machine is booting on.

  [ bp: Massage commit message. ]

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-25-brijesh.singh@amd.com
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/acpi.c
arch/x86/boot/compressed/efi.c [new file with mode: 0644]
arch/x86/boot/compressed/misc.h