summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
AgeCommit message (Collapse)Author
2008-01-15Fix bug that failed to reclaim the variable.yshang1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4556 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-141) Replace MACRO with C functions.yshang1
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
2008-01-11Change C functions, xxxSizeOfVariable(), to MACRO, which can avoid the ICC ↵yshang1
compile error "Unspecific evaluated order". git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4552 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-10Align the header of variable from 1 to 4, which can avoid the size of ↵yshang1
variable content corrupt if the critical data cross two flash block. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4543 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-091) Fix the bug that Variable Cache Search does not be protected by lock ↵yshang1
during boot time. It potentially results in the info from GetVariable() is not correct. 2) Check the integrity of Variable header. In original implementation, if not whole header is correct, then the variable will be treat as invalid. typically, if the NameSize has been programed but the DataSize not, then the variable storage would failed to set new variable. 3) Change the Variable Header Alignment from 1 to 4 bytes on x86. It avoids the DataSize or NameSize cross two blocks. For example, in original implementation, if the NameSize crosses two block, when the FLASH manipulation is interrupted after programed HSB of NameSize and prior to program LSB of NameSize on next block, then the invalid variable header will result in the Variable Storgae broken. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4538 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-19Fix a bug in variable driver cache mechanism:qhuang8
It should return EFI_SUCCESS and update the output buffer size if the input buffer is larger than actual variable contents. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4182 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-09Fix a bug. FindVariable now search volatile variable first (previously NV ↵qwang12
variable first) for performance reason. Therefore, RuntimeServiceGetNextVariableName is updated based on this change. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4056 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06Fix a bug with changing the NVRAM properties of a VariableAJFISH
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4030 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-05Update comments in Variable driver and removed references to FLASH Map Hob ↵AJFISH
in INF files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4019 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-04Add Profiling support for Variable store and added a specialized caching ↵AJFISH
algorithm git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4015 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-171. Uefi2.1 feature - Add Hardware Error Record Persistence Support qhuang8
2. Fix the return status accoring to approved UEFI ECRs. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3866 6f19259b-4bc3-4df7-8a09-765794883524
2007-07-24Retire the "Include/Common" of MdeModulePkg.yshang1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3425 6f19259b-4bc3-4df7-8a09-765794883524
2007-07-19Move VariablePei/VariableDxe/EmuVarible to /Variable folder of MdeModulePkg.yshang1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3370 6f19259b-4bc3-4df7-8a09-765794883524