]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Move relocate_kernel to kernel .data section
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 8 Nov 2024 02:17:41 +0000 (02:17 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 5 Dec 2024 15:05:07 +0000 (15:05 +0000)
commitab6b4899e691e078042b5a904343bfdbdfd5fd15
tree38d96c7d1a22f310c06cf876c887cba7844fe12b
parentaf9cdfeaf253fae61c5b86482e652dc492b6a447
x86/kexec: Move relocate_kernel to kernel .data section

Now that the copy is executed instead of the original, the relocate_kernel
page can live in the kernel's .text section. This will allow subsequent
commits to actually add real data to it and clean up the code somewhat as
well as making the control page ROX.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/include/asm/sections.h
arch/x86/kernel/callthunks.c
arch/x86/kernel/machine_kexec_64.c
arch/x86/kernel/relocate_kernel_64.S
arch/x86/kernel/vmlinux.lds.S