From d48f9174cf211a235193963a06b3d28537fc6529 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Thu, 19 Aug 2021 12:21:12 +0200 Subject: [PATCH] src/boot/efi/linux: fix linux_exec prototype Callers to linux_exec() are actually passing an EFI_HANDLE, not a pointer to it. linux_efi_handover(), which is called by linux_exec(), also expects an EFI_HANDLE. --- src/boot/efi/linux.c | 2 +- src/boot/efi/linux.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c index 748ca29f7ec..529325fef99 100644 --- a/src/boot/efi/linux.c +++ b/src/boot/efi/linux.c @@ -27,7 +27,7 @@ static VOID linux_efi_handover(EFI_HANDLE image, struct boot_params *params) { handover(image, ST, params); } -EFI_STATUS linux_exec(EFI_HANDLE *image, +EFI_STATUS linux_exec(EFI_HANDLE image, CHAR8 *cmdline, UINTN cmdline_len, UINTN linux_addr, UINTN initrd_addr, UINTN initrd_size) { diff --git a/src/boot/efi/linux.h b/src/boot/efi/linux.h index 7fdef9990b2..773c260b7ef 100644 --- a/src/boot/efi/linux.h +++ b/src/boot/efi/linux.h @@ -84,7 +84,7 @@ struct boot_params { UINT8 _pad9[276]; } _packed_; -EFI_STATUS linux_exec(EFI_HANDLE *image, +EFI_STATUS linux_exec(EFI_HANDLE image, CHAR8 *cmdline, UINTN cmdline_size, UINTN linux_addr, UINTN initrd_addr, UINTN initrd_size); -- 2.47.3