diff options
author | Marvin Häuser <Marvin.Haeuser@outlook.com> | 2018-02-27 18:26:19 +0100 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2018-02-28 09:14:11 +0800 |
commit | 9acb51169fbd25d24ff57517e35f6bef1679d2a6 (patch) | |
tree | 5ba0feb4ec91356f35d67a55b38d893bbe066b77 /Platform/Intel/MinPlatformPkg/Test | |
parent | c9d1705ba26a4f7656e92ed382472d4ff175761c (diff) | |
download | edk2-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>
Diffstat (limited to 'Platform/Intel/MinPlatformPkg/Test')
-rw-r--r-- | Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmCheckSmrr.c | 2 |
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);
|