summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-04-28 21:26:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-04-28 21:26:48 +0000
commit6cc8af967f3eb15a82956806cabad1ab9a2ee7ad (patch)
tree626ec0866c5311a5033f4edb926a0c74c8b5b1d7 /sys/arch/sgi
parentebeda68b7f640a32977f28a184993b3d6cae7afa (diff)
Only invoke setcurcpu() #ifdef MULTIPROCESSOR
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/sgi/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 076b735bde2..79c551fed95 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.101 2010/04/28 16:20:28 syuu Exp $ */
+/* $OpenBSD: machdep.c,v 1.102 2010/04/28 21:26:47 miod Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -149,10 +149,12 @@ mips_init(int argc, void *argv, caddr_t boot_esym)
extern char exception[], e_exception[];
extern char *hw_vendor;
+#ifdef MULTIPROCESSOR
/*
* Set curcpu address on primary processor.
*/
setcurcpu(&cpu_info_primary);
+#endif
/*
* Make sure we can access the extended address space.