]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/boot: Move the EFI mixed mode startup code back under arch/x86, into startup/
authorArd Biesheuvel <ardb@kernel.org>
Tue, 1 Apr 2025 13:34:20 +0000 (15:34 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 6 Apr 2025 18:15:14 +0000 (20:15 +0200)
Linus expressed a strong preference for arch-specific asm code (i.e.,
virtually all of it) to reside under arch/ rather than anywhere else.

So move the EFI mixed mode startup code back, and put it under
arch/x86/boot/startup/ where all shared x86 startup code is going to
live.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20250401133416.1436741-11-ardb+git@google.com
arch/x86/boot/startup/Makefile
arch/x86/boot/startup/efi-mixed.S [moved from drivers/firmware/efi/libstub/x86-mixed.S with 100% similarity]
drivers/firmware/efi/libstub/Makefile

index 03519ef4869d3091c237ecf0ee1d232b305ac453..73946a3f6b3baab721751a10b3801e3710ed3871 100644 (file)
@@ -1,3 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
+KBUILD_AFLAGS          += -D__DISABLE_EXPORTS
+
 lib-$(CONFIG_X86_64)           += la57toggle.o
+lib-$(CONFIG_EFI_MIXED)                += efi-mixed.o
index d23a1b9fed75cca09983c957b8aabbbe2c853be0..2f173391b63d2674541e844c87d8244c0fca8ffe 100644 (file)
@@ -85,7 +85,6 @@ lib-$(CONFIG_EFI_GENERIC_STUB)        += efi-stub.o string.o intrinsics.o systable.o \
 lib-$(CONFIG_ARM)              += arm32-stub.o
 lib-$(CONFIG_ARM64)            += kaslr.o arm64.o arm64-stub.o smbios.o
 lib-$(CONFIG_X86)              += x86-stub.o smbios.o
-lib-$(CONFIG_EFI_MIXED)                += x86-mixed.o
 lib-$(CONFIG_X86_64)           += x86-5lvl.o
 lib-$(CONFIG_RISCV)            += kaslr.o riscv.o riscv-stub.o
 lib-$(CONFIG_LOONGARCH)                += loongarch.o loongarch-stub.o