UEFI spec section 2.3.1 requires all data to be naturally aligned.
Remove the unnecessary pragma usage.

Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Maurice Ma <maurice...@intel.com>
Cc: Satya Yarlagadda <satya.p.yarlaga...@intel.com>
Cc: Michael Kinney <michael.d.kin...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Giri P Mudusuru <giri.p.mudus...@intel.com>
---
 IntelFsp2Pkg/Include/FspDataTable.h       | 4 ----
 IntelFsp2Pkg/Include/FspEas/FspApi.h      | 3 ---
 IntelFsp2Pkg/Include/FspGlobalData.h      | 4 ----
 IntelFsp2Pkg/Include/Guid/FspHeaderFile.h | 4 ----
 4 files changed, 15 deletions(-)

diff --git a/IntelFsp2Pkg/Include/FspDataTable.h 
b/IntelFsp2Pkg/Include/FspDataTable.h
index 3c79f34..a137feb 100644
--- a/IntelFsp2Pkg/Include/FspDataTable.h
+++ b/IntelFsp2Pkg/Include/FspDataTable.h
@@ -15,8 +15,6 @@
 #ifndef _FSP_DATA_TABLE_H_
 #define _FSP_DATA_TABLE_H_
 
-#pragma pack(1)
-
 #define FSP_DATA_SIGNATURE  SIGNATURE_32 ('F', 'S', 'P', 'D')
 
 typedef struct  {
@@ -27,6 +25,4 @@ typedef struct  {
   UINT32  FspsBase;
 } FSP_DATA_TABLE;
 
-#pragma pack()
-
 #endif
diff --git a/IntelFsp2Pkg/Include/FspEas/FspApi.h 
b/IntelFsp2Pkg/Include/FspEas/FspApi.h
index a2e4813..173b33f 100644
--- a/IntelFsp2Pkg/Include/FspEas/FspApi.h
+++ b/IntelFsp2Pkg/Include/FspEas/FspApi.h
@@ -30,7 +30,6 @@
 #define FSP_STATUS_RESET_REQUIRED_8            0x40000008
 /// @}
 
-#pragma pack(1)
 ///
 /// FSP_UPD_HEADER Configuration.
 ///
@@ -153,8 +152,6 @@ typedef struct {
   FSP_INIT_PHASE     Phase;
 } NOTIFY_PHASE_PARAMS;
 
-#pragma pack()
-
 /**
   This FSP API is called soon after coming out of reset and before memory and 
stack is
   available. This FSP API will load the microcode update, enable code caching 
for the
diff --git a/IntelFsp2Pkg/Include/FspGlobalData.h 
b/IntelFsp2Pkg/Include/FspGlobalData.h
index 8ac3199..605a264 100644
--- a/IntelFsp2Pkg/Include/FspGlobalData.h
+++ b/IntelFsp2Pkg/Include/FspGlobalData.h
@@ -16,8 +16,6 @@
 
 #include <FspEas.h>
 
-#pragma pack(1)
-
 typedef enum {
   TempRamInitApiIndex,
   FspInitApiIndex,
@@ -61,6 +59,4 @@ typedef struct  {
    UINT64             PerfData[32];
 } FSP_GLOBAL_DATA;
 
-#pragma pack()
-
 #endif
diff --git a/IntelFsp2Pkg/Include/Guid/FspHeaderFile.h 
b/IntelFsp2Pkg/Include/Guid/FspHeaderFile.h
index 96cac00..d36d0a6 100644
--- a/IntelFsp2Pkg/Include/Guid/FspHeaderFile.h
+++ b/IntelFsp2Pkg/Include/Guid/FspHeaderFile.h
@@ -30,8 +30,6 @@
 
 #define FSP_INFO_HEADER_SIGNATURE  SIGNATURE_32 ('F', 'S', 'P', 'H')
 
-#pragma pack(1)
-
 ///
 /// FSP Information Header as described in FSP v2.0 Spec section 5.1.1.
 ///
@@ -197,8 +195,6 @@ typedef struct {
 //UINT32  PatchData[];
 } FSP_PATCH_TABLE;
 
-#pragma pack()
-
 extern EFI_GUID gFspHeaderFileGuid;
 
 #endif
-- 
2.9.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to