5a6e7dc9bbdb58ce5bab9ceafd67bb09b9f43be5
2 Processor or compiler specific defines and types for EBC.
4 We currently only have one EBC complier so there may be some Intel compiler
5 specific functions in this file.
7 Copyright (c) 2006, Intel Corporation
8 All rights reserved. This program and the accompanying materials
9 are licensed and made available under the terms and conditions of the BSD License
10 which accompanies this distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 Module Name: ProcessorBind.h
20 #ifndef __PROCESSOR_BIND_H__
21 #define __PROCESSOR_BIND_H__
24 // Define the processor type so other code can make processor based choices
29 // Native integer types
32 typedef unsigned char BOOLEAN
;
33 typedef unsigned char UINT8
;
34 typedef unsigned char CHAR8
;
37 typedef unsigned short UINT16
;
38 typedef unsigned short CHAR16
;
41 typedef unsigned int UINT32
;
43 typedef __int64 INT64
;
44 typedef unsigned __int64 UINT64
;
47 // "long" type scales to the processor native size with EBC compiler
50 typedef unsigned long UINTN
;
52 #define UINT8_MAX 0xff
55 // Scalable macro to set the most significant bit in a natural number
57 #define MAX_BIT (1ULL << (sizeof (INTN) * 8 - 1))
58 #define MAX_2_BITS (3ULL << (sizeof (INTN) * 8 - 2))
61 // Maximum legal EBC address
63 #define MAX_ADDRESS ((UINTN) ~0)
65 // Modifier to ensure that all protocol member functions and EFI intrinsics
66 // use the correct C calling convention. All protocol member functions and
67 // EFI intrinsics are required to modify thier member functions with EFIAPI.
72 // The Microsoft* C compiler can removed references to unreferenced data items
73 // if the /OPT:REF linker option is used. We defined a macro as this is a
74 // a non standard extension. Currently not supported by the EBC compiler
76 #define GLOBAL_REMOVE_IF_UNREFERENCED