]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stub: Be explicit about EFI handover calling convention
authorJan Janssen <medhefgo@web.de>
Tue, 20 Sep 2022 07:30:40 +0000 (09:30 +0200)
committerJan Janssen <medhefgo@web.de>
Tue, 20 Sep 2022 10:55:43 +0000 (12:55 +0200)
src/boot/efi/linux_x86.c

index 2502ce94b9a39650c735856a92722f94183c4dcf..a8607b00bf874e779c017bd5e3346aea688c3855 100644 (file)
@@ -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);