10#ifndef PROCESSOR_BIND_H__
11#define PROCESSOR_BIND_H__
16#define MDE_CPU_RISCV64
21#if !defined (__GNUC__)
58typedef unsigned char BOOLEAN;
62typedef unsigned char UINT8;
70typedef signed char INT8;
89#define MAX_BIT 0x8000000000000000ULL
93#define MAX_2_BITS 0xC000000000000000ULL
98#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
103#define MAX_ALLOC_ADDRESS 0xFFFFFFFFFFFFULL
108#define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL)
109#define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL)
114#define CPU_STACK_ALIGNMENT 16
119#define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000)
120#define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x1000)
131#elif defined (__GNUC__)
149#if defined (__GNUC__)
154#define ASM_GLOBAL .globl
167#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)
169#ifndef __USER_LABEL_PREFIX__
170#define __USER_LABEL_PREFIX__
unsigned long long UINT64 __attribute__((aligned(8)))