[PATCH v1 2/3] x86/boot: the decompressor must supply boot_param from RDI
From: Khalid Ali
Date: Mon Jun 23 2025 - 04:17:18 EST
From: Khalid Ali <khaliidcaliy@xxxxxxxxx>
This adjusts the decompressor to supply arguments from RDI instead RSI.
Signed-off-by: Khalid Ali <khaliidcaliy@xxxxxxxxx>
---
arch/x86/boot/compressed/head_64.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index d9dab940ff62..07dcc3ac5b6d 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -471,7 +471,7 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated)
/*
* Jump to the decompressed kernel.
*/
- movq %r15, %rsi
+ movq %r15, %rdi
jmp *%rax
SYM_FUNC_END(.Lrelocated)
--
2.49.0