* [PATCH v1 3/3] efi/efistub: Make libstub to supply boot_param from RDI
@ 2025-06-23 8:16 Khalid Ali
0 siblings, 0 replies; only message in thread
From: Khalid Ali @ 2025-06-23 8:16 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, ubizjak
Cc: x86, hpa, linux-efi, linux-kernel, Khalid Ali
From: Khalid Ali <khaliidcaliy@gmail.com>
This adjusts the libstub to supply argument from RDI instead of RSI.
Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
---
drivers/firmware/efi/libstub/x86-stub.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c
index 09ed1c122106..9da9b6295b1d 100644
--- a/drivers/firmware/efi/libstub/x86-stub.c
+++ b/drivers/firmware/efi/libstub/x86-stub.c
@@ -794,8 +794,8 @@ static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry,
static void __noreturn enter_kernel(unsigned long kernel_addr,
struct boot_params *boot_params)
{
- /* enter decompressed kernel with boot_params pointer in RSI/ESI */
- asm("jmp *%0"::"r"(kernel_addr), "S"(boot_params));
+ /* enter decompressed kernel with boot_params pointer in RDI/EDI */
+ asm("jmp *%0"::"r"(kernel_addr), "D"(boot_params));
unreachable();
}
--
2.49.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-23 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-23 8:16 [PATCH v1 3/3] efi/efistub: Make libstub to supply boot_param from RDI Khalid Ali
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®