X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FInclude%2FCommon%2FVariable.h;h=a6e5c3bdc5a0776ce016d429266d1f76e6bffcc7;hp=e75adafc1223e3f630fe76643ac54c8217e23796;hb=39d03acf63bab3d4f9fd9d297c94d6655bff3088;hpb=878ddf1fc3540a715f63594ed22b6929e881afb4 diff --git a/EdkModulePkg/Include/Common/Variable.h b/EdkModulePkg/Include/Common/Variable.h index e75adafc12..a6e5c3bdc5 100644 --- a/EdkModulePkg/Include/Common/Variable.h +++ b/EdkModulePkg/Include/Common/Variable.h @@ -1,6 +1,7 @@ -/*++ - -Copyright (c) 2006, Intel Corporation +/**@file + Header file for EFI Variable Services. + +Copyright (c) 2006 - 2007 Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -9,15 +10,7 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - EfiVariable.h - -Abstract: - - Header file for EFI Variable Services - ---*/ +**/ #ifndef _EFI_VARIABLE_H_ #define _EFI_VARIABLE_H_ @@ -34,6 +27,17 @@ Abstract: #define VARIABLE_STORE_FORMATTED 0x5a #define VARIABLE_STORE_HEALTHY 0xfe +// +// The alignment of variable's start offset. +// For IA32/X64 architecture, the alignment is set to 1, and +// 8 is for IPF archtecture. +// +#if defined (MDE_CPU_IPF) +#define ALIGNMENT 8 +#else +#define ALIGNMENT 1 +#endif + // // Variable Store Status //