]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Ebc/EdkIIGlueProcessorBind.h
Bug Fix: Define CPU_STACK_ALIGNMENT for each ARCH.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Ebc / EdkIIGlueProcessorBind.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGlueProcessorBind.h\r
16 \r
17Abstract: \r
18\r
19 Processor specific definitions\r
20\r
21--*/\r
22\r
23#ifndef __EDKII_GLUE_PROCESSOR_BIND_H__\r
24#define __EDKII_GLUE_PROCESSOR_BIND_H__\r
25\r
26//\r
27// The Microsoft* C compiler can removed references to unreferenced data items\r
28// if the /OPT:REF linker option is used. We defined a macro as this is a \r
29// a non standard extension\r
30//\r
31#if _MSC_EXTENSIONS\r
32 #define GLOBAL_REMOVE_IF_UNREFERENCED __declspec(selectany)\r
33#else\r
34 #define GLOBAL_REMOVE_IF_UNREFERENCED\r
35#endif\r
36\r
37#ifndef MDE_CPU_EBC\r
38 #define MDE_CPU_EBC\r
39#endif \r
40\r
e70330e0 41///\r
42/// The stack alignment required for EBC\r
43///\r
44#define CPU_STACK_ALIGNMENT sizeof(UINTN)\r
45\r
3eb9473e 46#endif\r