audk/UefiCpuPkg/Library/MtrrLib
Jeff Fan eecad34987 UefiCpuPkg/MtrrLib: Fixed bug if length is less than Fixed-MTRR range
Currently, if the memory length to be programmed is less than the remaining size
of one Fixed-MTRR supported, RETURN_UNSUPPORTED returned. This is not correct.
This is one regression at 07e8892090 when we
updated ProgramFixedMtrr() to remove the loop of calculating Fixed-MTRR Mask.

This fix will calculate Right offset in Fixed-MTRR beside left offset. It
supports small length (less than remaining size supported by Fixed-MTRR) to be
programmed.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2016-06-07 13:09:25 +08:00
..
MtrrLib.c UefiCpuPkg/MtrrLib: Fixed bug if length is less than Fixed-MTRR range 2016-06-07 13:09:25 +08:00
MtrrLib.inf UefiCpuPkg/MtrrLib: Add PCD PcdCpuNumberOfReservedVariableMtrrs 2015-12-08 05:19:34 +00:00
MtrrLib.uni UefiCpuPkg: Convert all .uni files to utf-8 2015-12-15 04:59:14 +00:00