[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [POWERPC][XEN] /chosen/cpu is an instance not a package
# HG changeset patch # User Jimi Xenidis <jimix@xxxxxxxxxxxxxx> # Node ID 776efe262006e07e44de3ab5355a07dee1b70994 # Parent 2234703167568d71dc67c7ea77c93111b061cfd3 [POWERPC][XEN] /chosen/cpu is an instance not a package Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx> Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx> --- xen/arch/powerpc/boot_of.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff -r 223470316756 -r 776efe262006 xen/arch/powerpc/boot_of.c --- a/xen/arch/powerpc/boot_of.c Wed Nov 29 14:16:36 2006 -0600 +++ 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |