summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Include/VariableFormat.h
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-14 06:35:23 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-14 06:35:23 +0000
commit130e25699a6d060c966978e345c6c8eeed85d065 (patch)
tree9ba431713d743f899f3928f17d8b908a5efbe7ea /MdeModulePkg/Include/VariableFormat.h
parent51dc1f659f280fefefc960377dc79490c03d3f5e (diff)
downloadedk2-platforms-130e25699a6d060c966978e345c6c8eeed85d065.tar.xz
1) Replace MACRO with C functions.
2) Add HEADER_VALID_ONLY state of variable, which represents only the header is valid and the data/name is stale. This may be caused by incomplete data updating. Adding the state helps to check whether the header is valid. If variable header is valid, then we must skip the data of variable with the valid size. If the header is invalid, we should only skip the header of variable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4555 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include/VariableFormat.h')
-rw-r--r--MdeModulePkg/Include/VariableFormat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h
index 431f01bbb5..bdc33ecb54 100644
--- a/MdeModulePkg/Include/VariableFormat.h
+++ b/MdeModulePkg/Include/VariableFormat.h
@@ -60,7 +60,9 @@ typedef enum {
//
#define VAR_IN_DELETED_TRANSITION 0xfe // Variable is in obsolete transistion
#define VAR_DELETED 0xfd // Variable is obsolete
-#define VAR_ADDED 0x7f // Variable has been completely added
+#define VAR_HEADER_VALID_ONLY 0x7f // Variable header has been valid
+#define VAR_ADDED 0x3f // Variable has been completely added
+ //
#define IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)
#pragma pack(1)