diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 0e76e2f92a..d29aca2bdc 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -1756,6 +1756,8 @@ MtrrSetVariableMtrr ( PreMtrrChange (&MtrrContext); MtrrSetVariableMtrrWorker (VariableSettings); PostMtrrChange (&MtrrContext); + MtrrDebugPrintAllMtrrs (); + return VariableSettings; } @@ -1804,6 +1806,7 @@ MtrrSetFixedMtrr ( PreMtrrChange (&MtrrContext); MtrrSetFixedMtrrWorker (FixedSettings); PostMtrrChange (&MtrrContext); + MtrrDebugPrintAllMtrrs (); return FixedSettings; } @@ -1888,9 +1891,12 @@ MtrrSetAllMtrrs ( PostMtrrChangeEnableCache (&MtrrContext); + MtrrDebugPrintAllMtrrs (); + return MtrrSetting; } + /** Checks if MTRR is supported.