x86/boot: Move LA57 trampoline to separate source file
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
@@ -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
[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
@@ -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