From a3461db85f6cef000b81dab83987181ecc0089ca Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Tue, 20 Sep 2022 09:30:40 +0200 Subject: [PATCH] stub: Be explicit about EFI handover calling convention --- src/boot/efi/linux_x86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/boot/efi/linux_x86.c b/src/boot/efi/linux_x86.c index 2502ce94b9..a8607b00bf 100644 --- a/src/boot/efi/linux_x86.c +++ b/src/boot/efi/linux_x86.c @@ -98,7 +98,8 @@ assert_cc(sizeof(BootParams) == 4096); # define __regparm0__ #endif -typedef void (*handover_f)(void *image, EFI_SYSTEM_TABLE *table, BootParams *params) __regparm0__; +typedef void (*handover_f)(void *image, EFI_SYSTEM_TABLE *table, BootParams *params) __regparm0__ + __attribute__((sysv_abi)); static void linux_efi_handover(EFI_HANDLE image, uintptr_t kernel, BootParams *params) { assert(params);