From: Michael Kinney Date: Tue, 8 Dec 2015 05:24:48 +0000 (+0000) Subject: UefiCpuPkg/MtrrLib: Print MTRR settings when set fixed/variable MTRRs X-Git-Tag: edk2-stable201903~8346 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e518b80d80c1795545cd88c896fe64be599187bb;hp=b0fa5d29d08e61fd7f2178aa3b455e41374b36c4 UefiCpuPkg/MtrrLib: Print MTRR settings when set fixed/variable MTRRs Cc: Feng Tian Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19159 6f19259b-4bc3-4df7-8a09-765794883524 --- 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.