patch-2.4.25 linux-2.4.25/arch/mips/sibyte/cfe/smp.c

Next file: linux-2.4.25/arch/mips/sibyte/sb1250/bus_watcher.c
Previous file: linux-2.4.25/arch/mips/sgi-ip27/ip27-nmi.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/sibyte/cfe/smp.c linux-2.4.25/arch/mips/sibyte/cfe/smp.c
@@ -24,20 +24,15 @@
 #include "cfe_api.h"
 #include "cfe_error.h"
 
-extern void asmlinkage smp_bootstrap(void);
-
 /* Boot all other cpus in the system, initialize them, and
    bring them into the boot fn */
-int prom_boot_secondary(int cpu, unsigned long sp, unsigned long gp)
+void prom_boot_secondary(int cpu, unsigned long sp, unsigned long gp)
 {
 	int retval;
 	
-	retval = cfe_cpu_start(cpu, &smp_bootstrap, sp, gp, 0);
+	retval = cfe_cpu_start(cpu, smp_bootstrap, sp, gp, 0);
 	if (retval != 0) {
 		printk("cfe_start_cpu(%i) returned %i\n" , cpu, retval);
-		return 0;
-	} else {
-		return 1;
 	}
 }
 
@@ -47,12 +42,12 @@
 	unsigned int imask = STATUSF_IP4 | STATUSF_IP3 | STATUSF_IP2 |
 		STATUSF_IP1 | STATUSF_IP0;
 
+	/* cache and TLB setup */
+	load_mmu();
+
 	/* Enable basic interrupts */
 	change_c0_status(ST0_IM, imask);
 	set_c0_status(ST0_IE);
-
-	/* cache and TLB setup */
-	load_mmu();
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)