diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-10 04:26:13 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-10 04:26:13 +0000 |
commit | 9cad030bc14e706d8986ed33f0fa8b28f0828c48 (patch) | |
tree | cd43555e2277a45cc1f1e03fb283125165a020fb /MdeModulePkg/Include | |
parent | fdb7765f2d0a835ca93abb63969fe802c12f3560 (diff) | |
download | edk2-9cad030bc14e706d8986ed33f0fa8b28f0828c48.zip edk2-9cad030bc14e706d8986ed33f0fa8b28f0828c48.tar.gz edk2-9cad030bc14e706d8986ed33f0fa8b28f0828c48.tar.bz2 |
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.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h index c660134..431f01b 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
//
|