]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Universal/Smbios/ProcessorSubClassDxe/SmbiosProcessorArmCommon.c
ArmPkg/ProcessorSubClassDxe: Fix the format of ProcessorId
[mirror_edk2.git] / ArmPkg / Universal / Smbios / ProcessorSubClassDxe / SmbiosProcessorArmCommon.c
index 292f10bf97ebe964fb05e4d4d894d9fdcc057250..d644cd33d2491d067868b44e19dcf276dad8a438 100644 (file)
@@ -2,6 +2,7 @@
   Functions for processor information common to ARM and AARCH64.\r
 \r
   Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>\r
+  Copyright (c) 2021, Ampere Computing LLC. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -171,7 +172,7 @@ SmbiosGetProcessorId (
 \r
   if (HasSmcArm64SocId ()) {\r
     SmbiosGetSmcArm64SocId (&Jep106Code, &SocRevision);\r
-    ProcessorId = ((UINT64)Jep106Code << 32) | SocRevision;\r
+    ProcessorId = ((UINT64)SocRevision << 32) | Jep106Code;\r
   } else {\r
     ProcessorId = ArmReadMidr ();\r
   }\r