XenevaOS
Loading...
Searching...
No Matches
ProcessorBind.h
Go to the documentation of this file.
1
18#ifndef __PROCESSOR_BIND_H__
19#define __PROCESSOR_BIND_H__
20
24#define MDE_CPU_EBC
25
26//
27// Native integer types
28//
29
33typedef signed char INT8;
38typedef unsigned char BOOLEAN;
42typedef unsigned char UINT8;
46typedef char CHAR8;
50typedef short INT16;
54typedef unsigned short UINT16;
59typedef unsigned short CHAR16;
63typedef int INT32;
67typedef unsigned int UINT32;
71typedef __int64 INT64;
75typedef unsigned __int64 UINT64;
76
82typedef long INTN;
88typedef unsigned long UINTN;
89
94#define MAX_BIT ((UINTN)((1ULL << (sizeof (INTN) * 8 - 1))))
99#define MAX_2_BITS ((UINTN)(3ULL << (sizeof (INTN) * 8 - 2)))
100
104#define MAX_ADDRESS ((UINTN)(~0ULL >> (64 - sizeof (INTN) * 8)))
105
109#define MAX_UINTN ((UINTN)(~0ULL >> (64 - sizeof (INTN) * 8)))
110#define MAX_INTN ((INTN)(~0ULL >> (65 - sizeof (INTN) * 8)))
111
115#define MIN_INTN (((INTN)-MAX_INTN) - 1)
116
120#define CPU_STACK_ALIGNMENT sizeof(UINTN)
121
125#define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000)
126#define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x1000)
127
133#ifdef EFIAPI
137#else
138#define EFIAPI
139#endif
140
150#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)
151
152#ifndef __USER_LABEL_PREFIX__
153#define __USER_LABEL_PREFIX__
154#endif
155
156#endif
157
unsigned short UINT16
Definition ProcessorBind.h:104
unsigned char BOOLEAN
Definition ProcessorBind.h:107
char CHAR8
Definition ProcessorBind.h:109
UINT64 UINTN
Definition ProcessorBind.h:118
unsigned long long UINT64
Definition ProcessorBind.h:100
short INT16
Definition ProcessorBind.h:106
int INT32
Definition ProcessorBind.h:103
long long INT64
Definition ProcessorBind.h:101
unsigned short CHAR16
Definition ProcessorBind.h:105
signed char INT8
Definition ProcessorBind.h:110
INT64 INTN
Definition ProcessorBind.h:124
unsigned char UINT8
Definition ProcessorBind.h:108
unsigned int UINT32
Definition ProcessorBind.h:102