From 9cad030bc14e706d8986ed33f0fa8b28f0828c48 Mon Sep 17 00:00:00 2001 From: yshang1 Date: Thu, 10 Jan 2008 04:26:13 +0000 Subject: 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 --- MdeModulePkg/Include/VariableFormat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Include') 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 // -- cgit v1.2.3