summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-29 04:44:43 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-29 04:44:43 +0000
commit6a7c450c1e6d99a3486060bffc2620fef7754e59 (patch)
treee53414314ba65934ce9dfffb3fe6a483084a2086
parent6425868fc829ad015c5239958f3c8abd36d27eeb (diff)
downloadedk2-6a7c450c1e6d99a3486060bffc2620fef7754e59.tar.gz
edk2-6a7c450c1e6d99a3486060bffc2620fef7754e59.tar.bz2
edk2-6a7c450c1e6d99a3486060bffc2620fef7754e59.zip
Skip the progma for GCC tool chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4967 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmCpuState/CpuSaveState.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmCpuState/CpuSaveState.h b/EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmCpuState/CpuSaveState.h
index 05cc983347..eded4d8cce 100644
--- a/EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmCpuState/CpuSaveState.h
+++ b/EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmCpuState/CpuSaveState.h
@@ -33,11 +33,13 @@ typedef unsigned long ASM_UINT32;
#ifdef _H2INC
typedef double ASM_UINT64;
#else
-typedef unsigned __int64 ASM_UINT64;
+typedef UINT64 ASM_UINT64;
#endif
+#ifndef __GNUC__
#pragma pack (push)
#pragma pack (1)
+#endif
typedef struct _EFI_SMM_CPU_STATE32 {
ASM_UINT8 Reserved1[0xf8]; // fe00h
@@ -132,8 +134,12 @@ typedef struct _EFI_SMM_CPU_STATE64 {
ASM_UINT64 _CR0; // fff8h
} EFI_SMM_CPU_STATE64;
+#ifndef __GNUC__
#pragma warning (push)
#pragma warning (disable: 4201)
+#endif
+
+
typedef union _EFI_SMM_CPU_STATE {
struct {
ASM_UINT8 Reserved[0x200];
@@ -141,9 +147,11 @@ typedef union _EFI_SMM_CPU_STATE {
};
EFI_SMM_CPU_STATE64 x64;
} EFI_SMM_CPU_STATE;
-#pragma warning (pop)
+#ifndef __GNUC__
+#pragma warning (pop)
#pragma pack (pop)
+#endif
#define EFI_SMM_MIN_REV_ID_x64 0x30006