Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/include/arm64/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 | ||||
emaste: these cleanups ought to be committed first/separately | |||||
Not Done Inline ActionsAgreed will do. smh: Agreed will do. | |||||
// 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 __int16 uint16_t; | typedef unsigned __int16 uint16_t; | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
// EFIAPI - prototype calling convention for EFI function pointers | // EFIAPI - prototype calling convention for EFI function pointers | ||||
// BOOTSERVICE - prototype for implementation of a boot service interface | // BOOTSERVICE - prototype for implementation of a boot service interface | ||||
// RUNTIMESERVICE - prototype for implementation of a runtime service interface | // RUNTIMESERVICE - prototype for implementation of a runtime service interface | ||||
// RUNTIMEFUNCTION - prototype for implementation of a runtime function that is not a service | // RUNTIMEFUNCTION - prototype for implementation of a runtime function that is not a service | ||||
// RUNTIME_CODE - pragma macro for declaring runtime code | // RUNTIME_CODE - pragma macro for declaring runtime code | ||||
// | // | ||||
#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 | #define RUNTIMESERVICE | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
these cleanups ought to be committed first/separately