X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2Fx64%2FProcessorBind.h;h=bc240000a444e9863d1fdf30e44093553b7937fc;hp=34b35a89b8dcf488d4f924061d2e815202a41b40;hb=24a7505cefd6dbb73bcdf2778f4e59095780aa50;hpb=959ccb23c6a14797ecaf5990bd5906b4b05a9b75 diff --git a/MdePkg/Include/x64/ProcessorBind.h b/MdePkg/Include/x64/ProcessorBind.h index 34b35a89b8..bc240000a4 100644 --- a/MdePkg/Include/x64/ProcessorBind.h +++ b/MdePkg/Include/x64/ProcessorBind.h @@ -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__ @@ -30,6 +28,24 @@ #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 // @@ -209,5 +225,14 @@ typedef INT64 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