Skip to contentSkip to conversation

x86/boot: Move LA57 trampoline to separate source file

PATCH Applied Ard Biesheuvel 2 participants 2 messages Mar 13, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot: Move LA57 trampoline to separate source file

From: Ard Biesheuvel <[email protected]>

To permit the EFI stub to call this code even when building the kernel without the legacy decompressor, move the trampoline out of the latter's startup code.

No functional change intended.

---
This is part of an ongoing effort on my part to make the existing, generic EFI zboot format work on x86 as well. This work is tentatively aimed for the v6.16 cycle, but some standalone changes such as this one can be pulled forward to reduce the impact of many boot code changes landing at once (as this always makes for fun debugging).

 arch/x86/boot/compressed/Makefile     |   1 +
 arch/x86/boot/compressed/head_64.S    | 103 ------------------
 arch/x86/boot/compressed/la57toggle.S | 112 ++++++++++++++++++++
 3 files changed, 113 insertions(+), 103 deletions(-)
arch/x86/boot/compressed/Makefile +1 -0
index 606c74f27459..0e0b238e8363 100644
@@ -98,6 +98,7 @@ ifdef CONFIG_X86_64
 	vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/mem_encrypt.o
 	vmlinux-objs-y += $(obj)/pgtable_64.o
 	vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/sev.o
+	vmlinux-objs-y += $(obj)/la57toggle.o
 endif
 
 vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o
arch/x86/boot/compressed/head_64.S +0 -103

110 lines not on this page · raw message

arch/x86/boot/compressed/la57toggle.S new file +112 -0

112 lines not on this page · raw message

Signature · 1 line
2.49.0.rc0.332.g42c0ae87b1-goog
merge bot Applied
#1 lore raw

[tip: x86/boot] x86/boot: Move the LA57 trampoline to separate source file

The following commit has been merged into the x86/boot branch of tip:

The following commit has been merged into the x86/boot branch of tip:

Commit-ID:     e27dffba1b1d6c047b48c325adcb1342d3e3fa69
Gitweb:        https://git.kernel.org/tip/e27dffba1b1d6c047b48c325adcb1342d3e3fa69
Author:        Ard Biesheuvel <[email protected]>
AuthorDate:    Thu, 13 Mar 2025 13:03:25 +01:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 13 Mar 2025 18:12:38 +01:00

x86/boot: Move the LA57 trampoline to separate source file

To permit the EFI stub to call this code even when building the kernel without the legacy decompressor, move the trampoline out of the latter's startup code.

This is part of an ongoing WIP effort on my part to make the existing, generic EFI zboot format work on x86 as well.

No functional change intended.

---
 arch/x86/boot/compressed/Makefile     |   1 +-
 arch/x86/boot/compressed/head_64.S    | 103 +-----------------------
 arch/x86/boot/compressed/la57toggle.S | 112 +++++++++++++++++++++++++-
 3 files changed, 113 insertions(+), 103 deletions(-)
 create mode 100644 arch/x86/boot/compressed/la57toggle.S
arch/x86/boot/compressed/Makefile +1 -0
index 606c74f..0e0b238 100644
@@ -98,6 +98,7 @@ ifdef CONFIG_X86_64
 	vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/mem_encrypt.o
 	vmlinux-objs-y += $(obj)/pgtable_64.o
 	vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/sev.o
+	vmlinux-objs-y += $(obj)/la57toggle.o
 endif
 
 vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o
arch/x86/boot/compressed/head_64.S +0 -103

110 lines not on this page · raw message

arch/x86/boot/compressed/la57toggle.S new file +112 -0

112 lines not on this page · raw message