From 1a66807b216a6f17e4f206c121c998008c2460d6 Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Thu, 10 Dec 2015 07:25:55 +0000 Subject: UefiCpuPkg/MtrrLib: Print MTRR settings when set fixed/variable MTRRs (Sync patch r19159 from main trunk.) 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/branches/UDK2015@19203 6f19259b-4bc3-4df7-8a09-765794883524 --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'UefiCpuPkg/Library') 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. -- cgit v1.2.3