]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/efi/mixed: Check CPU compatibility without relying on verify_cpu()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 7 Jan 2025 14:57:16 +0000 (15:57 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 21 Feb 2025 15:54:16 +0000 (16:54 +0100)
commiteaed89559591f73ca06a3e6534c381e3bd948ee6
treea97ca289d25e21535b68273a1137ebca75a2f6e5
parentdac628e9563640e2de7878decc03a508b1ba319a
x86/efi/mixed: Check CPU compatibility without relying on verify_cpu()

In order for the EFI mixed mode startup code to be reusable in a context
where the legacy decompressor is not used, replace the call to
verify_cpu() [which performs an elaborate set of checks] with a simple
check against the 'long mode' bit in the appropriate CPUID leaf.

This is reasonable, given that EFI support is implied when booting in
this manner, and so there is no need to consider very old CPUs when
performing this check.

Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/efi_mixed.S