mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg MTRR Library: Remove a buggy check logic in MtrrSetMemoryAttribute() that may incorrectly RETURN_OUT_OF_RESOURCES in some cases.
Signed-off-by: rsun3 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12780 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a2daf8dbec
commit
f5b315e525
|
@ -1026,16 +1026,6 @@ MtrrSetMemoryAttribute (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// Program Variable MTRRs
|
|
||||||
//
|
|
||||||
// Avoid hardcode here and read data dynamically
|
|
||||||
//
|
|
||||||
if (UsedMtrr >= FirmwareVariableMtrrCount) {
|
|
||||||
Status = RETURN_OUT_OF_RESOURCES;
|
|
||||||
goto Done;
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// The memory type is the same with the type specified by
|
// The memory type is the same with the type specified by
|
||||||
// MTRR_LIB_IA32_MTRR_DEF_TYPE.
|
// MTRR_LIB_IA32_MTRR_DEF_TYPE.
|
||||||
|
|
Loading…
Reference in New Issue