]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Clean up register usage in relocate_kernel()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 22 Nov 2024 18:20:27 +0000 (18:20 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 5 Dec 2024 15:05:07 +0000 (15:05 +0000)
commit9e0c1253e08a88516b5839b408cf877afa453906
treead7865c9fddd7a5147595a57e4c3d26b57449d7b
parentde74d67746f3f5922478dba088646391e8c2c6d3
x86/kexec: Clean up register usage in relocate_kernel()

The memory encryption flag is passed in %r8 because that's where the
calling convention puts it. Instead of moving it to %r12 and then using
%r8 for other things, just leave it in %r8 and use other registers
instead.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/relocate_kernel_64.S