[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEN][POWERPC] secondary_cpu_init() does not return.



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID dbc7ea73f5b2cdeaff3beb2129fe6e11ecf46019
# Parent  768bf8f273fb67ceb4351472b91c2bd7c82cbc62
[XEN][POWERPC] secondary_cpu_init() does not return.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/exceptions.h |    2 +-
 xen/arch/powerpc/setup.c      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -r 768bf8f273fb -r dbc7ea73f5b2 xen/arch/powerpc/exceptions.h
--- a/xen/arch/powerpc/exceptions.h     Tue Nov 28 10:33:53 2006 -0500
+++ b/xen/arch/powerpc/exceptions.h     Tue Nov 28 16:43:53 2006 -0500
@@ -52,5 +52,5 @@ extern char exception_vectors[];
 extern char exception_vectors[];
 extern char exception_vectors_end[];
 extern int spin_start[];
-extern int secondary_cpu_init(int cpuid, unsigned long r4);
+extern void secondary_cpu_init(int cpuid, unsigned long r4);
 #endif
diff -r 768bf8f273fb -r dbc7ea73f5b2 xen/arch/powerpc/setup.c
--- a/xen/arch/powerpc/setup.c  Tue Nov 28 10:33:53 2006 -0500
+++ b/xen/arch/powerpc/setup.c  Tue Nov 28 16:43:53 2006 -0500
@@ -256,7 +256,7 @@ static int kick_secondary_cpus(int maxcp
 }
 
 /* This is the first C code that secondary processors invoke.  */
-int secondary_cpu_init(int cpuid, unsigned long r4)
+void secondary_cpu_init(int cpuid, unsigned long r4)
 {
     struct vcpu *vcpu;
 
@@ -274,7 +274,7 @@ int secondary_cpu_init(int cpuid, unsign
     idle_vcpu[cpuid] = current;
     startup_cpu_idle_loop();
 
-    while(1);
+    panic("should never get here\n");
 }
 
 static void __init __start_xen(multiboot_info_t *mbi)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.