summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 18:26:19 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:14:11 +0800
commit9acb51169fbd25d24ff57517e35f6bef1679d2a6 (patch)
tree5ba0feb4ec91356f35d67a55b38d893bbe066b77
parentc9d1705ba26a4f7656e92ed382472d4ff175761c (diff)
downloadedk2-platforms-9acb51169fbd25d24ff57517e35f6bef1679d2a6.tar.xz
MinPlatformPkg/TestPointCheckLib: Initialize SmrrMask to prevent compiler confusion.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c
index 6d9fc3be2b..b954e32c4c 100644
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c
+++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c
@@ -102,6 +102,8 @@ TestPointCheckSmrr (
}
}
+ SmrrMask = 0;
+
if (mSmrrSupported) {
SmrrBase = AsmReadMsr64 (mSmrrPhysBaseMsr);
SmrrMask = AsmReadMsr64 (mSmrrPhysMaskMsr);