Skip to content

Commit 48140f8

Browse files
committed
Merge branch 'x86-mixed-mode' into efi/next
2 parents 7eb1721 + fb84cef commit 48140f8

File tree

6 files changed

+285
-372
lines changed

6 files changed

+285
-372
lines changed

arch/x86/boot/compressed/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o $(obj)/td
105105
vmlinux-objs-$(CONFIG_UNACCEPTED_MEMORY) += $(obj)/mem.o
106106

107107
vmlinux-objs-$(CONFIG_EFI) += $(obj)/efi.o
108-
vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_mixed.o
109108
vmlinux-libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
110109

111110
$(obj)/vmlinux: $(vmlinux-objs-y) $(vmlinux-libs-y) FORCE

arch/x86/boot/compressed/efi_mixed.S

Lines changed: 0 additions & 341 deletions
This file was deleted.

arch/x86/boot/compressed/head_64.S

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,6 @@ SYM_FUNC_START(startup_32)
263263
* used to perform that far jump.
264264
*/
265265
leal rva(startup_64)(%ebp), %eax
266-
#ifdef CONFIG_EFI_MIXED
267-
cmpb $1, rva(efi_is64)(%ebp)
268-
je 1f
269-
leal rva(startup_64_mixed_mode)(%ebp), %eax
270-
1:
271-
#endif
272-
273266
pushl $__KERNEL_CS
274267
pushl %eax
275268

drivers/firmware/efi/libstub/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS))
6262
# `-fdata-sections` flag from KBUILD_CFLAGS_KERNEL
6363
KBUILD_CFLAGS_KERNEL := $(filter-out -fdata-sections, $(KBUILD_CFLAGS_KERNEL))
6464

65+
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
66+
6567
lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \
6668
file.o mem.o random.o randomalloc.o pci.o \
6769
skip_spaces.o lib-cmdline.o lib-ctype.o \
@@ -83,6 +85,7 @@ lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o string.o intrinsics.o systable.o \
8385
lib-$(CONFIG_ARM) += arm32-stub.o
8486
lib-$(CONFIG_ARM64) += kaslr.o arm64.o arm64-stub.o smbios.o
8587
lib-$(CONFIG_X86) += x86-stub.o smbios.o
88+
lib-$(CONFIG_EFI_MIXED) += x86-mixed.o
8689
lib-$(CONFIG_X86_64) += x86-5lvl.o
8790
lib-$(CONFIG_RISCV) += kaslr.o riscv.o riscv-stub.o
8891
lib-$(CONFIG_LOONGARCH) += loongarch.o loongarch-stub.o

0 commit comments

Comments
 (0)