From: Jan Janssen Date: Tue, 20 Sep 2022 07:30:40 +0000 (+0200) Subject: stub: Be explicit about EFI handover calling convention X-Git-Tag: v252-rc1~124^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3461db85f6cef000b81dab83987181ecc0089ca;p=thirdparty%2Fsystemd.git stub: Be explicit about EFI handover calling convention --- diff --git a/src/boot/efi/linux_x86.c b/src/boot/efi/linux_x86.c index 2502ce94b9a..a8607b00bf8 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);