From 9acb51169fbd25d24ff57517e35f6bef1679d2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= Date: Tue, 27 Feb 2018 18:26:19 +0100 Subject: MinPlatformPkg/TestPointCheckLib: Initialize SmrrMask to prevent compiler confusion. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Jiewen Yao --- .../Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3