]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Include/Common/Variable.h
1) Change the alignment from 1 to 2 for IA32 and X64 arch.
[mirror_edk2.git] / EdkModulePkg / Include / Common / Variable.h
index e75adafc1223e3f630fe76643ac54c8217e23796..08334b72236741df222d0c0e92d9905aebda481f 100644 (file)
@@ -1,6 +1,7 @@
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation                                                         \r
+/**@file\r
+       Header file for EFI Variable Services.\r
+       \r
+Copyright (c) 2006 - 2007 Intel Corporation. <BR>\r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -9,15 +10,7 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-Module Name:\r
-\r
-  EfiVariable.h\r
-  \r
-Abstract:\r
-  \r
-  Header file for EFI Variable Services\r
-\r
---*/\r
+**/\r
 \r
 #ifndef _EFI_VARIABLE_H_\r
 #define _EFI_VARIABLE_H_\r
@@ -34,6 +27,15 @@ Abstract:
 #define VARIABLE_STORE_FORMATTED  0x5a\r
 #define VARIABLE_STORE_HEALTHY    0xfe\r
 \r
+//\r
+// The alignment of variable's start offset.\r
+//\r
+#if defined (MDE_CPU_IPF)\r
+#define ALIGNMENT  8\r
+#else\r
+#define ALIGNMENT  2\r
+#endif\r
+\r
 //\r
 // Variable Store Status\r
 //\r