add assertion to ensure HwErr type variable range is less than or equal to VariableStore range.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9199 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian
2009-08-26 02:59:28 +00:00
parent e77d8dd3ce
commit 48cd992ac7
3 changed files with 20 additions and 3 deletions

View File

@ -1313,6 +1313,14 @@ InitializeVariableStore (
{
VARIABLE_STORE_HEADER *VariableStore;
//
// Note that in EdkII variable driver implementation, Hardware Error Record type variable
// is stored with common variable in the same NV region. So the platform integrator should
// ensure that the value of PcdHwErrStorageSize is less than or equal to the value of
// PcdFlashNvStorageVariableSize.
//
ASSERT (FixedPcdGet32(PcdHwErrStorageSize) <= FixedPcdGet32(PcdFlashNvStorageVariableSize));
//
// Allocate memory for volatile variable store
//