X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FIa32%2FProcessorBind.h;h=7c40e09603329b922527db72c42649bee7890c0e;hp=45e9c14bf345701fb5566fdd990c24f2ab987d23;hb=ed300ce2a68ba42b7e140af9e7e71c706518c9f1;hpb=86b2b825c48d9524db4870b87c185f707a3b1dfa diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index 45e9c14bf3..7c40e09603 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -15,9 +15,9 @@ #ifndef __PROCESSOR_BIND_H__ #define __PROCESSOR_BIND_H__ -// -// Define the processor type so other code can make processor based choices -// +/// +/// Define the processor type so other code can make processor based choices +/// #define MDE_CPU_IA32 // @@ -28,13 +28,18 @@ #endif #if __INTEL_COMPILER +// +// Disable ICC's remark #869: "Parameter" was never referenced warning. +// This is legal ANSI C code so we disable the remark that is turned on with -Wall +// +#pragma warning ( disable : 869 ) + // // 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 @@ -150,20 +155,20 @@ typedef UINT32 UINTN; typedef INT32 INTN; -// -// Processor specific defines -// +/// +/// Processor specific defines +/// #define MAX_BIT 0x80000000 #define MAX_2_BITS 0xC0000000 -// -// Maximum legal IA-32 address -// +/// +/// Maximum legal IA-32 address +/// #define MAX_ADDRESS 0xFFFFFFFF -// -// The stack alignment required for IA-32 -// +/// +/// The stack alignment required for IA-32 +/// #define CPU_STACK_ALIGNMENT sizeof(UINTN) // @@ -172,9 +177,9 @@ typedef INT32 INTN; // EFI intrinsics are required to modify thier member functions with EFIAPI. // #if _MSC_EXTENSIONS - // - // Microsoft* compiler requires _EFIAPI useage, __cdecl is Microsoft* specific C. - // + /// + /// Microsoft* compiler requires _EFIAPI useage, __cdecl is Microsoft* specific C. + /// #define EFIAPI __cdecl #else #if __GNUC__ @@ -197,7 +202,11 @@ typedef INT32 INTN; // For symbol name in GNU assembly code, an extra "_" is necessary // #if __GNUC__ - #define ASM_PFX(name) _##name + #if defined(linux) + #define ASM_PFX(name) name + #else + #define ASM_PFX(name) _##name + #endif #endif #define FUNCTION_ENTRY_POINT(p) (p)