which have xAPIC and x2APIC modes.\r
\r
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
- Copyright (c) 2017, AMD Inc. All rights reserved.<BR>\r
+ Copyright (c) 2017 - 2020, AMD Inc. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
#include <Library/IoLib.h>\r
#include <Library/TimerLib.h>\r
#include <Library/PcdLib.h>\r
+#include <Library/UefiCpuLib.h>\r
\r
//\r
// Library internal functions\r
//\r
\r
-/**\r
- Determine if the standard CPU signature is "AuthenticAMD".\r
-\r
- @retval TRUE The CPU signature matches.\r
- @retval FALSE The CPU signature does not match.\r
-\r
-**/\r
-BOOLEAN\r
-StandardSignatureIsAuthenticAMD (\r
- VOID\r
- )\r
-{\r
- UINT32 RegEbx;\r
- UINT32 RegEcx;\r
- UINT32 RegEdx;\r
-\r
- AsmCpuid (CPUID_SIGNATURE, NULL, &RegEbx, &RegEcx, &RegEdx);\r
- return (RegEbx == CPUID_SIGNATURE_AUTHENTIC_AMD_EBX &&\r
- RegEcx == CPUID_SIGNATURE_AUTHENTIC_AMD_ECX &&\r
- RegEdx == CPUID_SIGNATURE_AUTHENTIC_AMD_EDX);\r
-}\r
-\r
/**\r
Determine if the CPU supports the Local APIC Base Address MSR.\r
\r