Subject: bootmid missing for non-MULTIPROCESSOR
To: None <port-sparc@netbsd.org>
From: Simon J. Gerraty <sjg@crufty.net>
List: port-sparc
Date: 01/20/2003 21:27:05
The following patch appears to be needed:
--sjg
Index: sys/arch/sparc/sparc/cpu.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/sparc/cpu.c,v
retrieving revision 1.169
diff -u -p -r1.169 cpu.c
--- sys/arch/sparc/sparc/cpu.c 2003/01/20 20:51:33 1.169
+++ sys/arch/sparc/sparc/cpu.c 2003/01/21 05:26:04
@@ -133,12 +133,12 @@ void fpu_init __P((struct cpu_info *));
#define SRMMU_IMPL(mmusr) ((u_int)(mmusr) >> 28)
#define SRMMU_VERS(mmusr) (((mmusr) >> 24) & 0xf)
+int bootmid; /* Module ID of boot CPU */
#if defined(MULTIPROCESSOR)
void cpu_spinup __P((struct cpu_info *));
struct cpu_info *alloc_cpuinfo_global_va __P((int, vsize_t *));
struct cpu_info *alloc_cpuinfo __P((void));
-int bootmid; /* Module ID of boot CPU */
int go_smp_cpus = 0; /* non-primary cpu's wait for this to go */
/* lock this to send IPI's */