12 #ifndef __PROCESSOR_BIND_H__ 13 #define __PROCESSOR_BIND_H__ 20 #define MDE_CPU_AARCH64 25 #if !defined (__GNUC__) && !defined (__ASSEMBLER__) 29 #if defined (_MSC_EXTENSIONS) 38 #pragma warning ( disable : 4214 ) 43 #pragma warning ( disable : 4100 ) 49 #pragma warning ( disable : 4057 ) 54 #pragma warning ( disable : 4127 ) 59 #pragma warning ( disable : 4505 ) 64 #pragma warning ( disable : 4206 ) 69 #pragma warning ( disable : 4701 ) 74 #pragma warning ( disable : 4703 ) 79 typedef unsigned __int64
UINT64;
80 typedef __int64
INT64;
81 typedef unsigned __int32
UINT32;
82 typedef __int32
INT32;
83 typedef unsigned short UINT16;
84 typedef unsigned short CHAR16;
87 typedef unsigned char UINT8;
89 typedef signed char INT8;
129 #define MAX_BIT 0x8000000000000000ULL 134 #define MAX_2_BITS 0xC000000000000000ULL 139 #define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL 144 #define MAX_ALLOC_ADDRESS 0xFFFFFFFFFFFFULL 149 #define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL) 150 #define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL) 155 #define MIN_INTN (((INTN)-9223372036854775807LL) - 1) 160 #define CPU_STACK_ALIGNMENT 16 165 #define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000) 166 #define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x10000) 177 #if defined (__GNUC__) || defined (__clang__) 182 #define ASM_GLOBAL .globl 184 #define GCC_ASM_EXPORT(func__) \ 185 .global _CONCATENATE (__USER_LABEL_PREFIX__, func__) ;\ 186 .type ASM_PFX(func__), %function 188 #define GCC_ASM_IMPORT(func__) \ 189 .extern _CONCATENATE (__USER_LABEL_PREFIX__, func__) 191 #if defined (__ARM_FEATURE_BTI_DEFAULT) && __ARM_FEATURE_BTI_DEFAULT == 1 192 #define AARCH64_BTI_NOTE() \ 193 .ifndef .Lgnu_bti_notesize ;\ 194 .pushsection .note.gnu.property, "a" ;\ 195 .set NT_GNU_PROPERTY_TYPE_0, 0x5 ;\ 196 .set GNU_PROPERTY_AARCH64_FEATURE_1_AND, 0xc0000000 ;\ 197 .set GNU_PROPERTY_AARCH64_FEATURE_1_BTI, 0x1 ;\ 200 .long .Lgnu_bti_notesize ;\ 201 .long NT_GNU_PROPERTY_TYPE_0 ;\ 203 .set .Lnamesize, . - 0b ;\ 205 1: .long GNU_PROPERTY_AARCH64_FEATURE_1_AND ;\ 207 2: .long GNU_PROPERTY_AARCH64_FEATURE_1_BTI ;\ 208 .set .Lvalsize, . - 2b ;\ 210 .set .Lgnu_bti_notesize, . - 1b ;\ 214 #define AARCH64_BTI(__type) \ 215 AARCH64_BTI_NOTE() ;\ 223 #define AARCH64_BTI_NOTE() 224 #define AARCH64_BTI(__type) 237 #define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer) 239 #ifndef __USER_LABEL_PREFIX__ 240 #define __USER_LABEL_PREFIX__
INT64 INTN
Signed value of native width.
UINT64 UINTN
Unsigned value of native width.
unsigned long long UINT64
FILE_LICENCE(BSD2_PATENT)