Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/include/amd64/efibind.h
Show All 33 Lines | |||||
// | // | ||||
// Basic int types of various widths | // Basic int types of various widths | ||||
// | // | ||||
#if (__STDC_VERSION__ < 199901L ) | #if (__STDC_VERSION__ < 199901L ) | ||||
// No ANSI C 1999/2000 stdint.h integer width declarations | // No ANSI C 1999/2000 stdint.h integer width declarations | ||||
#if _MSC_EXTENSIONS | #ifdef _MSC_EXTENSIONS | ||||
// Use Microsoft C compiler integer width declarations | // Use Microsoft C compiler integer width declarations | ||||
typedef unsigned __int64 uint64_t; | typedef unsigned __int64 uint64_t; | ||||
typedef __int64 int64_t; | typedef __int64 int64_t; | ||||
typedef unsigned __int32 uint32_t; | typedef unsigned __int32 uint32_t; | ||||
typedef __int32 int32_t; | typedef __int32 int32_t; | ||||
typedef unsigned short uint16_t; | typedef unsigned short uint16_t; | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | |||||
// RUNTIME_CODE - pragma macro for declaring runtime code | // RUNTIME_CODE - pragma macro for declaring runtime code | ||||
// | // | ||||
#ifdef __amd64__ | #ifdef __amd64__ | ||||
#define EFIAPI __attribute__((ms_abi)) | #define EFIAPI __attribute__((ms_abi)) | ||||
#endif | #endif | ||||
#ifndef EFIAPI // Forces EFI calling conventions reguardless of compiler options | #ifndef EFIAPI // Forces EFI calling conventions reguardless of compiler options | ||||
#if _MSC_EXTENSIONS | #ifdef _MSC_EXTENSIONS | ||||
#define EFIAPI __cdecl // Force C calling convention for Microsoft C compiler | #define EFIAPI __cdecl // Force C calling convention for Microsoft C compiler | ||||
#else | #else | ||||
#define EFIAPI // Substitute expresion to force C calling convention | #define EFIAPI // Substitute expresion to force C calling convention | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#define BOOTSERVICE | #define BOOTSERVICE | ||||
//#define RUNTIMESERVICE(proto,a) alloc_text("rtcode",a); proto a | //#define RUNTIMESERVICE(proto,a) alloc_text("rtcode",a); proto a | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
// | // | ||||
#ifdef NO_INTERFACE_DECL | #ifdef NO_INTERFACE_DECL | ||||
#define INTERFACE_DECL(x) | #define INTERFACE_DECL(x) | ||||
#else | #else | ||||
#define INTERFACE_DECL(x) typedef struct x | #define INTERFACE_DECL(x) typedef struct x | ||||
#endif | #endif | ||||
#endif /* __FreeBSD__ */ | #endif /* __FreeBSD__ */ | ||||
#if _MSC_EXTENSIONS | #ifdef _MSC_EXTENSIONS | ||||
#pragma warning ( disable : 4731 ) // Suppress warnings about modification of EBP | #pragma warning ( disable : 4731 ) // Suppress warnings about modification of EBP | ||||
#endif | #endif | ||||