TianoCore EDK2 master
ProcessorBind.h
Go to the documentation of this file.
1
12#ifndef __PROCESSOR_BIND_H__
13#define __PROCESSOR_BIND_H__
14
18#define MDE_CPU_EBC
19
20//
21// Native integer types
22//
23
27typedef signed char INT8;
32typedef unsigned char BOOLEAN;
36typedef unsigned char UINT8;
40typedef char CHAR8;
44typedef short INT16;
48typedef unsigned short UINT16;
53typedef unsigned short CHAR16;
57typedef int INT32;
61typedef unsigned int UINT32;
65typedef __int64 INT64;
69typedef unsigned __int64 UINT64;
70
76typedef long INTN;
82typedef unsigned long UINTN;
83
88#define MAX_BIT ((UINTN)((1ULL << (sizeof (INTN) * 8 - 1))))
93#define MAX_2_BITS ((UINTN)(3ULL << (sizeof (INTN) * 8 - 2)))
94
98#define MAX_ADDRESS ((UINTN)(~0ULL >> (64 - sizeof (INTN) * 8)))
99
103#define MAX_ALLOC_ADDRESS MAX_ADDRESS
104
108#define MAX_UINTN ((UINTN)(~0ULL >> (64 - sizeof (INTN) * 8)))
109#define MAX_INTN ((INTN)(~0ULL >> (65 - sizeof (INTN) * 8)))
110
114#define MIN_INTN (((INTN)-MAX_INTN) - 1)
115
119#define CPU_STACK_ALIGNMENT sizeof(UINTN)
120
124#define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000)
125#define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x1000)
126
132#ifdef EFIAPI
136#else
137#define EFIAPI
138#endif
139
149#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)
150
151#ifndef __USER_LABEL_PREFIX__
152#define __USER_LABEL_PREFIX__
153#endif
154
155#endif
UINT64 UINTN
INT64 INTN
unsigned short UINT16
Definition: ProcessorBind.h:48
unsigned char BOOLEAN
Definition: ProcessorBind.h:32
__int64 INT64
Definition: ProcessorBind.h:65
char CHAR8
Definition: ProcessorBind.h:40
short INT16
Definition: ProcessorBind.h:44
int INT32
Definition: ProcessorBind.h:57
unsigned short CHAR16
Definition: ProcessorBind.h:53
signed char INT8
Definition: ProcessorBind.h:27
unsigned __int64 UINT64
Definition: ProcessorBind.h:69
unsigned char UINT8
Definition: ProcessorBind.h:36
unsigned int UINT32
Definition: ProcessorBind.h:61