summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Include
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-05 08:12:30 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-05 08:12:30 +0000
commit20798fc5762b54f27173370ebcc976cd45e506bf (patch)
tree7a218a92ea56999f8eac3594c474453f69ed6f67 /EdkModulePkg/Include
parent95122138b07d653b0f7a5d9a24d76c93388f07ce (diff)
downloadedk2-20798fc5762b54f27173370ebcc976cd45e506bf.zip
edk2-20798fc5762b54f27173370ebcc976cd45e506bf.tar.gz
edk2-20798fc5762b54f27173370ebcc976cd45e506bf.tar.bz2
1) Change the alignment from 1 to 2 for IA32 and X64 arch.
2) Move ALIGNMENT macro to common variable.h file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2538 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Include')
-rw-r--r--EdkModulePkg/Include/Common/Variable.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/EdkModulePkg/Include/Common/Variable.h b/EdkModulePkg/Include/Common/Variable.h
index e75adaf..08334b7 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. <BR>
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_
@@ -35,6 +28,15 @@ Abstract:
#define VARIABLE_STORE_HEALTHY 0xfe
//
+// The alignment of variable's start offset.
+//
+#if defined (MDE_CPU_IPF)
+#define ALIGNMENT 8
+#else
+#define ALIGNMENT 2
+#endif
+
+//
// Variable Store Status
//
typedef enum {