summaryrefslogtreecommitdiff
path: root/MdePkg/Include/IndustryStandard/Sal.h
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 22:21:08 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 22:21:08 +0000
commit766f4bc13745f77fbcd68efc7d689f493c67b833 (patch)
tree1a372a4fc15014535d578b7e4217254e88ca341d /MdePkg/Include/IndustryStandard/Sal.h
parent8e1ac15ab89d289a42bd687a91b94d1c4284d3f1 (diff)
downloadedk2-platforms-766f4bc13745f77fbcd68efc7d689f493c67b833.tar.xz
Revert all the #pramga(1) related patches to r6434, we need to review all the updates carefully.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6461 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/IndustryStandard/Sal.h')
-rw-r--r--MdePkg/Include/IndustryStandard/Sal.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/MdePkg/Include/IndustryStandard/Sal.h b/MdePkg/Include/IndustryStandard/Sal.h
index 37e7dbe71b..b792df6f6e 100644
--- a/MdePkg/Include/IndustryStandard/Sal.h
+++ b/MdePkg/Include/IndustryStandard/Sal.h
@@ -341,6 +341,7 @@ typedef struct _SAL_UPDATE_PAL_INFO_BLOCK {
///
/// SAL System Table Definitions
///
+#pragma pack(1)
typedef struct {
///
/// The ASCII string representation of "SST_" which confirms the presence of the table.
@@ -391,6 +392,7 @@ typedef struct {
///
UINT8 Reserved2[8];
} SAL_SYSTEM_TABLE_HEADER;
+#pragma pack()
#define EFI_SAL_ST_HEADER_SIGNATURE "SST_"
#define EFI_SAL_REVISION 0x0320
@@ -414,6 +416,7 @@ typedef struct {
#define EFI_SAL_ST_PTC_SIZE 16
#define EFI_SAL_ST_AP_WAKEUP_SIZE 16
+#pragma pack(1)
///
/// Format Entrypoint Descriptor Entry
///
@@ -426,6 +429,7 @@ typedef struct {
UINT64 Reserved2[2];
} SAL_ST_ENTRY_POINT_DESCRIPTOR;
+#pragma pack(1)
///
/// Format Platform Features Descriptor Entry
///
@@ -434,7 +438,7 @@ typedef struct {
UINT8 PlatformFeatures;
UINT8 Reserved[14];
} SAL_ST_PLATFORM_FEATURES;
-
+#pragma pack()
//
// Value of Platform Feature List
//
@@ -442,6 +446,7 @@ typedef struct {
#define SAL_PLAT_FEAT_PLAT_IPI_HINT 0x02
#define SAL_PLAT_FEAT_PROC_IPI_HINT 0x04
+#pragma pack(1)
///
/// Format of Translation Register Descriptor Entry
///
@@ -454,13 +459,14 @@ typedef struct {
UINT64 EncodedPageSize;
UINT64 Reserved1;
} SAL_ST_TR_DECRIPTOR;
-
+#pragma pack()
//
// Type of Translation Register
//
#define EFI_SAL_ST_TR_USAGE_INSTRUCTION 00
#define EFI_SAL_ST_TR_USAGE_DATA 01
+#pragma pack(1)
///
/// Definition of Coherence Domain Information
///
@@ -468,7 +474,9 @@ typedef struct {
UINT64 NumberOfProcessors;
UINT64 LocalIDRegister;
} SAL_COHERENCE_DOMAIN_INFO;
+#pragma pack()
+#pragma pack(1)
///
/// Format of Purge Translation Cache Coherence Domain Entry
///
@@ -478,7 +486,9 @@ typedef struct {
UINT32 NumberOfDomains;
SAL_COHERENCE_DOMAIN_INFO *DomainInformation;
} SAL_ST_CACHE_COHERENCE_DECRIPTOR;
+#pragma pack()
+#pragma pack(1)
///
/// Format of Application Processor Wake-Up Descriptor Entry
///
@@ -488,6 +498,7 @@ typedef struct {
UINT8 Reserved[6];
UINT64 ExternalInterruptVector;
} SAL_ST_AP_WAKEUP_DECRIPTOR;
+#pragma pack()
///
/// Format of Firmware Interface Table (FIT) Entry
@@ -637,9 +648,6 @@ typedef struct {
#define PROC_CR_LID_VALID_BIT_MASK 0x4
#define PROC_STATIC_STRUCT_VALID_BIT_MASK 0x8
#define CPU_INFO_VALID_BIT_MASK 0x1000000
-
-#pragma pack(1)
-
///
/// Definition of Processor Machine Check Error Record
///
@@ -658,8 +666,6 @@ typedef struct {
PSI_STATIC_STRUCT PsiValidData;
} SAL_PROCESSOR_ERROR_RECORD;
-#pragma pack()
-
///
/// GUID of Platform Memory Device Error Info
///
@@ -785,7 +791,6 @@ typedef struct {
UINT8 SegmentNumber;
UINT8 Reserved[5];
} PCI_COMP_INFO;
-
///
/// Definition of Platform PCI Component Error Info
///
@@ -819,8 +824,6 @@ typedef struct {
#define SEL_EVENT_DATA1_VALID_BIT_MASK 0x80;
#define SEL_EVENT_DATA2_VALID_BIT_MASK 0x100;
#define SEL_EVENT_DATA3_VALID_BIT_MASK 0x200;
-
-#pragma pack(1)
///
/// Definition of Platform SEL Device Error Info Record
///
@@ -839,7 +842,6 @@ typedef struct {
UINT8 Data2;
UINT8 Data3;
} SAL_SEL_DEVICE_ERROR_RECORD;
-#pragma pack()
///
/// GUID of Platform SMBIOS Device Error Info
@@ -913,4 +915,6 @@ typedef union {
UINT8 *Raw;
} SAL_ERROR_RECORDS_POINTERS;
+#pragma pack()
+
#endif