# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 8394e66748d03bde2337df3ad2ba8be59cf392b5
# Parent c5c86d69c34a1aefaf79f653aa5eeae423f98ae9
[POWERPC][XEN] /chosen/cpu is an instance not a package
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/arch/powerpc/boot_of.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff -r c5c86d69c34a -r 8394e66748d0 xen/arch/powerpc/boot_of.c
--- a/xen/arch/powerpc/boot_of.c Mon Sep 18 11:19:00 2006 -0500
+++ b/xen/arch/powerpc/boot_of.c Mon Sep 18 17:47:10 2006 -0400
@@ -957,8 +957,9 @@ static void boot_of_module(ulong r3, ulo
static int __init boot_of_cpus(void)
{
- int cpus_node;
- int cpu_node, bootcpu_node, logical;
+ int cpus_node, cpu_node;
+ int bootcpu_instance, bootcpu_node;
+ int logical;
int result;
s32 cpuid;
u32 cpu_clock[2];
@@ -967,9 +968,13 @@ static int __init boot_of_cpus(void)
/* Look up which CPU we are running on right now and get all info
* from there */
result = of_getprop(bof_chosen, "cpu",
- &bootcpu_node, sizeof (bootcpu_node));
+ &bootcpu_instance, sizeof (bootcpu_instance));
if (result == OF_FAILURE)
- of_panic("Failed to look up boot cpu\n");
+ of_panic("Failed to look up boot cpu instance\n");
+
+ bootcpu_node = of_instance_to_package(bootcpu_instance);
+ if (result == OF_FAILURE)
+ of_panic("Failed to look up boot cpu package\n");
cpu_node = bootcpu_node;
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|