ArmCoreInfoTable = ArmProcessorTable->ArmCpus;\r
\r
for (Index = 0; Index < ArmProcessorTable->NumberOfEntries; Index++) {\r
- AsciiSPrint (Name, 10, "cpu@%d", Index);\r
+ CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,\r
+ ArmCoreInfoTable[Index].CoreId);\r
+ AsciiSPrint (Name, 10, "cpu@%x", CoreMpId);\r
\r
// If the 'cpus' node did not exist then create all the 'cpu' nodes.\r
// In case 'cpus' node is provided in the original FDT then we do not add\r
}\r
\r
fdt_setprop_string (fdt, cpu_node, "device_type", "cpu");\r
- CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,\r
- ArmCoreInfoTable[Index].CoreId);\r
+\r
CoreMpId = cpu_to_fdtn (CoreMpId);\r
fdt_setprop (fdt, cpu_node, "reg", &CoreMpId, sizeof (CoreMpId));\r
if (PsciSmcSupported) {\r