]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ia32/ProcessorBind.h
Modules cleanup.
[mirror_edk2.git] / MdePkg / Include / Ia32 / ProcessorBind.h
index 587d8a69aba389dfb1720ada2ae98fd30f52d4c3..2dccac4eb07a286f0a919deda7e0cc3a92462b78 100644 (file)
@@ -10,8 +10,6 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-  Module Name:  ProcessorBind.h\r
-\r
 **/\r
 \r
 #ifndef __PROCESSOR_BIND_H__\r
 #pragma pack()\r
 #endif\r
 \r
+#if __INTEL_COMPILER\r
+//\r
+// Disable ICC's remark #1418: external function definition with no prior declaration.\r
+// This is legal ANSI C code so we disable the remark that is turned on with /W4\r
+//\r
+#pragma warning ( disable : 1418 )\r
+\r
+\r
+//\r
+// Disable ICC's remark #1419: external declaration in primary source file\r
+// This is legal ANSI C code so we disable the remark that is turned on with /W4\r
+//\r
+#pragma warning ( disable : 1419 )\r
+\r
+#endif\r
+\r
+\r
 #if _MSC_EXTENSIONS\r
 \r
 //\r
 //\r
 #pragma warning ( disable : 4127 )\r
 \r
+//\r
+// This warning is caused by functions defined but not used. For precompiled header only.\r
+//\r
+#pragma warning ( disable : 4505 )\r
+\r
+//\r
+// This warning is caused by empty (after preprocessing) souce file. For precompiled header only.\r
+//\r
+#pragma warning ( disable : 4206 )\r
 \r
 #endif\r
 \r
 \r
     //\r
     // Assume standard IA-32 alignment. \r
-    // BugBug: Need to check portability of long long\r
+    // Need to check portability of long long\r
     //\r
     typedef unsigned long long  UINT64;\r
     typedef long long           INT64;\r
@@ -137,6 +161,11 @@ typedef INT32   INTN;
 //\r
 #define MAX_ADDRESS   0xFFFFFFFF\r
 \r
+//\r
+// The stack alignment required for IA-32\r
+//\r
+#define CPU_STACK_ALIGNMENT   sizeof(UINTN)\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r
@@ -165,3 +194,4 @@ typedef INT32   INTN;
 #endif\r
 \r
 #endif\r
+\r