diff options
author | Geoff Lywood <glywood@vmware.com> | 2010-05-28 15:06:24 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-05-29 23:49:39 +0100 |
commit | eef46c23d6baf3f2717aa8fc201c83928018d162 (patch) | |
tree | 108a0da79e18ea1860d6f0c5dd61a5d04f82e328 /src/include/ipxe/efi/efi.h | |
parent | 6514d6430d97effafa6c534e939053628ee783b0 (diff) | |
download | ipxe-eef46c23d6baf3f2717aa8fc201c83928018d162.tar.gz |
[efi] Update UEFI header files with latest version from TianoCore
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi.h')
-rw-r--r-- | src/include/ipxe/efi/efi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi.h b/src/include/ipxe/efi/efi.h index 4acbc242f..b45ddc132 100644 --- a/src/include/ipxe/efi/efi.h +++ b/src/include/ipxe/efi/efi.h @@ -36,6 +36,16 @@ #define __GNUC__ 1 #endif +/* EFI headers think your compiler uses the MS ABI by default on X64 */ +#if __x86_64__ +#define EFIAPI __attribute__((ms_abi)) +#endif + +/* EFI headers assume regparm(0) on i386, but that is not the case for iPXE */ +#if __i386__ +#define EFIAPI __attribute__((cdecl,regparm(0))) +#endif + /* Include the top-level EFI header files */ #include <ipxe/efi/Uefi.h> #include <ipxe/efi/PiDxe.h> |