audk/UefiCpuPkg/Library/MtrrLib
Ruiyu Ni 0e8a782922 UefiCpuPkg/MtrrLib: Fix an assertion bug
0                     40          f0         100
+---WT--+--UC--+--WT--+-----WB----+----UC----+

When calculating the shortest path from 0 to 100, the
MtrrLibCalculateLeastMtrrs() is called to update the
Vertices.Previous.
When calculating the shortest path from 0 to 40,
MtrrLibCalculateLeastMtrrs() is called recursively to update the
Vertices.Previous.
The second call corrupt the Previous value that will be used
later.
The patch removes the code that corrupts Previous.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2018-01-11 10:37:56 +08:00
..
MtrrLib.c UefiCpuPkg/MtrrLib: Fix an assertion bug 2018-01-11 10:37:56 +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