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:
@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user