summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Include
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-10 04:26:13 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-10 04:26:13 +0000
commit9cad030bc14e706d8986ed33f0fa8b28f0828c48 (patch)
treecd43555e2277a45cc1f1e03fb283125165a020fb /MdeModulePkg/Include
parentfdb7765f2d0a835ca93abb63969fe802c12f3560 (diff)
downloadedk2-platforms-9cad030bc14e706d8986ed33f0fa8b28f0828c48.tar.xz
Align the header of variable from 1 to 4, which can avoid the size of variable content corrupt if the critical data cross two flash block.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4543 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r--MdeModulePkg/Include/VariableFormat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h
index c660134f0d..431f01bbb5 100644
--- a/MdeModulePkg/Include/VariableFormat.h
+++ b/MdeModulePkg/Include/VariableFormat.h
@@ -38,11 +38,13 @@
// 8 is for IPF archtecture.
//
#if defined (MDE_CPU_IPF)
-#define ALIGNMENT 8
+#define ALIGNMENT 8
#else
-#define ALIGNMENT 1
+#define ALIGNMENT 1
#endif
+#define HEADER_ALIGNMENT 4
+
//
// Variable Store Status
//