summaryrefslogtreecommitdiff
path: root/edk2/SourceLevelDebugPkg
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-22 16:36:12 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-22 16:36:12 +0000
commit9fe711db4c8c7a7fd1e775f546f314a26fe44b7d (patch)
tree558ff0ebb6fdee1032517d52a12b7f20f072451d /edk2/SourceLevelDebugPkg
parent7a60186cbdb7da076034cc69a30b09346575a632 (diff)
SourceLevelDebugPkg: Pack CPU context structures
Use #pragma pack to ensure that ASM and C code agree on the structure layout between various compilers. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@11331 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/SourceLevelDebugPkg')
-rw-r--r--edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchRegisters.h6
-rw-r--r--edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchRegisters.h5
2 files changed, 9 insertions, 2 deletions
diff --git a/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchRegisters.h b/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchRegisters.h
index 3c279589e..909ddbe53 100644
--- a/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchRegisters.h
+++ b/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchRegisters.h
@@ -1,7 +1,7 @@
/** @file
IA32 register defintions needed by debug transfer protocol.
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -15,6 +15,8 @@
#ifndef _ARCH_REGISTERS_H_
#define _ARCH_REGISTERS_H_
+#pragma pack(1)
+
///
/// FXSAVE_STATE
/// FP / MMX / XMM registers (see fxrstor instruction definition)
@@ -153,4 +155,6 @@ typedef struct {
UINT32 TssBas;
} DEBUG_DATA_REPONSE_READ_REGISTER_GROUP_SEGBASE_IA32;
+#pragma pack()
+
#endif
diff --git a/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchRegisters.h b/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchRegisters.h
index e7a5a3308..967539195 100644
--- a/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchRegisters.h
+++ b/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchRegisters.h
@@ -1,7 +1,7 @@
/** @file
X64 register defintions needed by debug transfer protocol.
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -15,6 +15,8 @@
#ifndef _ARCH_REGISTERS_H_
#define _ARCH_REGISTERS_H_
+#pragma pack(1)
+
///
/// FXSAVE_STATE (promoted operation)
/// FP / MMX / XMM registers (see fxrstor instruction definition)
@@ -325,5 +327,6 @@ typedef struct {
UINT64 Tssas;
} DEBUG_DATA_REPONSE_READ_REGISTER_GROUP_SEGMENT_BASES_X64;
+#pragma pack()
#endif