\r
Virtual Memory Management Services to set or clear the memory encryption bit\r
\r
- Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
**/\r
\r
#include <Library/CpuLib.h>\r
-#include <Register/Cpuid.h>\r
#include <Register/Amd/Cpuid.h>\r
+#include <Register/Cpuid.h>\r
\r
#include "VirtualMemory.h"\r
\r
BOOLEAN IsWpEnabled;\r
RETURN_STATUS Status;\r
\r
+ //\r
+ // Set PageMapLevel4Entry to suppress incorrect compiler/analyzer warnings.\r
+ //\r
+ PageMapLevel4Entry = NULL;\r
+\r
DEBUG ((\r
DEBUG_VERBOSE,\r
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx Mode=%a CacheFlush=%u\n",\r