diff options
author | Michael Kinney <michael.d.kinney@intel.com> | 2015-12-10 07:25:55 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-10 07:25:55 +0000 |
commit | 1a66807b216a6f17e4f206c121c998008c2460d6 (patch) | |
tree | 7f6c555f84120b7659bc2cc0dc67db40ccd35a91 /UefiCpuPkg/Library | |
parent | bf4f151df461b4b840600d7ea75736a065618be0 (diff) | |
download | edk2-platforms-1a66807b216a6f17e4f206c121c998008c2460d6.tar.xz |
UefiCpuPkg/MtrrLib: Print MTRR settings when set fixed/variable MTRRs
(Sync patch r19159 from main trunk.)
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: Michael Kinney <michael.d.kinney@intel.com>
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19203 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/Library')
-rw-r--r-- | UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 6 |
1 files changed, 6 insertions, 0 deletions
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.
|