diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-06-06 10:04:11 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-06-07 13:09:25 +0800 |
commit | eecad34987c56317f69d4eee9d9c1df0c825a79e (patch) | |
tree | 0231ef3e66a4f31494ad844b878db19e3a9a5703 /CorebootPayloadPkg | |
parent | 626f6f6e74626a9d85d6c8ca2fa8473045580fcf (diff) | |
download | edk2-eecad34987c56317f69d4eee9d9c1df0c825a79e.tar.gz edk2-eecad34987c56317f69d4eee9d9c1df0c825a79e.tar.bz2 edk2-eecad34987c56317f69d4eee9d9c1df0c825a79e.zip |
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 07e889209034ba94bfac9e765b8a50ef344daef2 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>
Diffstat (limited to 'CorebootPayloadPkg')
0 files changed, 0 insertions, 0 deletions