Revision: 14434
          http://sourceforge.net/p/edk2/code/14434
Author:   oliviermartin
Date:     2013-06-19 18:09:19 +0000 (Wed, 19 Jun 2013)
Log Message:
-----------
ArmPkg/BdsLib: Update FDT CPU node format

- Based on Doc here:
  Repo: http://www.linux-arm.org/git?p=linux-2.6-lp.git
  Branch: dt-cpus-bindings
  File:   Documentation/devicetree/bindings/arm/cpus.txt

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPkg/Library/BdsLib/BdsLinuxFdt.c

Modified: trunk/edk2/ArmPkg/Library/BdsLib/BdsLinuxFdt.c
===================================================================
--- trunk/edk2/ArmPkg/Library/BdsLib/BdsLinuxFdt.c      2013-06-19 18:08:02 UTC 
(rev 14433)
+++ trunk/edk2/ArmPkg/Library/BdsLib/BdsLinuxFdt.c      2013-06-19 18:09:19 UTC 
(rev 14434)
@@ -535,7 +535,9 @@
       ArmCoreInfoTable = ArmProcessorTable->ArmCpus;
 
       for (Index = 0; Index < ArmProcessorTable->NumberOfEntries; Index++) {
-        AsciiSPrint (Name, 10, "cpu@%d", Index);
+        CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,
+                             ArmCoreInfoTable[Index].CoreId);
+        AsciiSPrint (Name, 10, "cpu@%x", CoreMpId);
 
         // If the 'cpus' node did not exist then create all the 'cpu' nodes.
         // In case 'cpus' node is provided in the original FDT then we do not 
add
@@ -549,8 +551,7 @@
           }
 
           fdt_setprop_string (fdt, cpu_node, "device_type", "cpu");
-          CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,
-                               ArmCoreInfoTable[Index].CoreId);
+
           CoreMpId = cpu_to_fdtn (CoreMpId);
           fdt_setprop (fdt, cpu_node, "reg", &CoreMpId, sizeof (CoreMpId));
           if (PsciSmcSupported) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to