]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c
UefiCpuPkg: Move StandardSignatureIsAuthenticAMD to BaseUefiCpuLib
[mirror_edk2.git] / UefiCpuPkg / Library / BaseXApicX2ApicLib / BaseXApicX2ApicLib.c
index d0f92b33dc8ceb306ea504e54694d39895148f32..cdcbca04619119a2b0012e347647acd1ec65f6cd 100644 (file)
@@ -5,7 +5,7 @@
   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