Loading...
Searching...
No Matches
Go to the documentation of this file.
10#ifndef __PROCESSOR_BIND_H__
11#define __PROCESSOR_BIND_H__
21#if !defined (__GNUC__) && !defined (__ASSEMBLER__)
25#if defined (_MSC_EXTENSIONS)
34 #pragma warning ( disable : 4214 )
39 #pragma warning ( disable : 4100 )
45 #pragma warning ( disable : 4057 )
50 #pragma warning ( disable : 4127 )
55 #pragma warning ( disable : 4505 )
60 #pragma warning ( disable : 4206 )
65 #pragma warning ( disable : 4701 )
70 #pragma warning ( disable : 4703 )
77#if defined (_MSC_EXTENSIONS)
81#if defined (_MSC_EXTENSIONS)
85typedef unsigned __int64 UINT64;
87typedef unsigned __int32 UINT32;
89typedef unsigned short UINT16;
90typedef unsigned short CHAR16;
92typedef unsigned char BOOLEAN;
93typedef unsigned char UINT8;
95typedef signed char INT8;
101typedef unsigned long long UINT64;
102typedef long long INT64;
103typedef unsigned int UINT32;
105typedef unsigned short UINT16;
106typedef unsigned short CHAR16;
108typedef unsigned char BOOLEAN;
109typedef unsigned char UINT8;
111typedef signed char INT8;
133#define MAX_BIT 0x80000000
138#define MAX_2_BITS 0xC0000000
143#define MAX_ADDRESS 0xFFFFFFFF
148#define MAX_ALLOC_ADDRESS MAX_ADDRESS
153#define MAX_INTN ((INTN)0x7FFFFFFF)
154#define MAX_UINTN ((UINTN)0xFFFFFFFF)
159#define MIN_INTN (((INTN)-2147483647) - 1)
164#define CPU_STACK_ALIGNMENT sizeof(UINT64)
169#define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000)
170#define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x1000)
181#if defined (__GNUC__) || defined (__clang__)
186#define ASM_GLOBAL .globl
188 #if !defined (__APPLE__)
194#define INTERWORK_FUNC(func__) .type ASM_PFX(func__), %function
196#define GCC_ASM_EXPORT(func__) \
197 .global _CONCATENATE (__USER_LABEL_PREFIX__, func__) ;\
198 .type ASM_PFX(func__), %function
200#define GCC_ASM_IMPORT(func__) \
201 .extern _CONCATENATE (__USER_LABEL_PREFIX__, func__)
207#define INTERWORK_FUNC(func__)
209#define GCC_ASM_EXPORT(func__) \
210 .globl _CONCATENATE (__USER_LABEL_PREFIX__, func__) \
212#define GCC_ASM_IMPORT(name)
215#elif defined (_MSC_EXTENSIONS)
232#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)
234#ifndef __USER_LABEL_PREFIX__
235#define __USER_LABEL_PREFIX__