]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Include/Common/Variable.h
Change the alignment of variable from 2 back to 1 for compability of test case.
[mirror_edk2.git] / EdkModulePkg / Include / Common / Variable.h
index e75adafc1223e3f630fe76643ac54c8217e23796..cfa14d2448625f780929462175a0e55523ecda07 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,17 @@ Abstract:
 #define VARIABLE_STORE_FORMATTED  0x5a\r
 #define VARIABLE_STORE_HEALTHY    0xfe\r
 \r
+//\r
+// The alignment of variable's start offset.\r
+// For IA32/X64 architecture, the alignment is set to 1, and \r
+// 2 is for IPF archtecture.\r
+//\r
+#if defined (MDE_CPU_IPF)\r
+#define ALIGNMENT  8\r
+#else\r
+#define ALIGNMENT  1\r
+#endif\r
+\r
 //\r
 // Variable Store Status\r
 //\r