efi/types: Only set ms_abi on x86

* Upstreamed to Fuchsia via:
  https://fuchsia-review.googlesource.com/c/fuchsia/+/358320

Change-Id: I3232cc1a5bf6194d5f2fa82f13668ca089faca92
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2174
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2020-01-30 00:21:54 +00:00
committed by waddlesplash
parent 5529e8d2df
commit e53e22439c
@@ -7,7 +7,12 @@
#include <stddef.h>
#include <stdint.h>
// EFI on x86 uses the Microsoft ABI which is not the default for gcc
#if defined(__x86_64__) || defined(__x86__)
#define EFIAPI __attribute__((ms_abi))
#else
#define EFIAPI
#endif
#define EFI_ERROR_MASK 0x8000000000000000
#define EFI_ERR(x) (EFI_ERROR_MASK | x)