diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 02:55:43 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 02:55:43 +0000 |
commit | f5b315e525101eafc431c868ee925bfd222311f6 (patch) | |
tree | 1a979a873afe2c0aa2ff4ff5ece7c60329f2e809 /UefiCpuPkg/Library/MtrrLib | |
parent | a2daf8dbecddcc04fb4317b6772bc154f0773f7a (diff) | |
download | edk2-platforms-f5b315e525101eafc431c868ee925bfd222311f6.tar.xz |
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
Diffstat (limited to 'UefiCpuPkg/Library/MtrrLib')
-rw-r--r-- | UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 5f1a22c5fd..bcf5e20459 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -1027,16 +1027,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
// MTRR_LIB_IA32_MTRR_DEF_TYPE.
//
|