X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FIa32%2FProcessorBind.h;h=e2e397a81895cddfacdc5c707521690c8f31662d;hp=e0ddba4fe55f5c3203ae0e47daa41d2dd1a7b676;hb=d1057d4ec5d3a48c800d041c44ed07a2dbe9d936;hpb=22a8f52f8ee52afbe33c5e47ac8389be44944c7c diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index e0ddba4fe5..e2e397a818 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -1,5 +1,5 @@ /** @file - Processor or Compiler specific defines and types for x64. + Processor or Compiler specific defines and types for Ia32 architecture. Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials @@ -10,8 +10,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: ProcessorBind.h - **/ #ifndef __PROCESSOR_BIND_H__ @@ -29,6 +27,23 @@ #pragma pack() #endif +#if __INTEL_COMPILER +// +// Disable ICC's remark #1418: external function definition with no prior declaration. +// This is legal ANSI C code so we disable the remark that is turned on with /W4 +// +#pragma warning ( disable : 1418 ) + + +// +// Disable ICC's remark #1419: external declaration in primary source file +// This is legal ANSI C code so we disable the remark that is turned on with /W4 +// +#pragma warning ( disable : 1419 ) + +#endif + + #if _MSC_EXTENSIONS // @@ -146,6 +161,11 @@ typedef INT32 INTN; // #define MAX_ADDRESS 0xFFFFFFFF +// +// The stack alignment required for IA-32 +// +#define CPU_STACK_ALIGNMENT sizeof(UINTN) + // // Modifier to ensure that all protocol member functions and EFI intrinsics // use the correct C calling convention. All protocol member functions and @@ -173,4 +193,14 @@ typedef INT32 INTN; #define GLOBAL_REMOVE_IF_UNREFERENCED #endif +// +// For symbol name in GNU assembly code, an extra "_" is necessary +// +#if __GNUC__ + #define ASM_PFX(name) _##name +#endif + +#define FUNCTION_ENTRY_POINT(p) (p) + #endif +