[RFC PATCH 2/2] x86/kexec: Add data section to relocate_kernel
David Woodhouse
dwmw2 at infradead.org
Thu Nov 7 21:35:53 PST 2024
On Fri, 2024-11-08 at 05:22 +0000, David Woodhouse wrote:
>
> @@ -128,7 +138,7 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped)
> /* set return address to 0 if not preserving context */
> pushq $0
> /* store the start address on the stack */
> - pushq %rdx
> + pushq start_address(%rip)
>
> /*
> * Clear X86_CR4_CET (if it was set) such that we can clear CR0_WP
Oops, drop that part; I did that (and actually defined it, and stored
the value in it) just to test that everything was actually *working*,
since I think the rest of the data fields are only used for
preserve_context mode. Fixed in the tree at
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads//kexec-lds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5965 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20241107/07fd67c5/attachment-0001.p7s>
More information about the kexec
mailing list