summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-04-28 21:26:47 +0000
committermiod <miod@openbsd.org>2010-04-28 21:26:47 +0000
commitb0a81b87f8a5ad82a91c0de7070fe61b91528841 (patch)
tree17570014b7a293617ac15d4cef901df01394012b
parents/amd64/__amd64__/, s/i386/__i386__, no binary change. (diff)
downloadwireguard-openbsd-b0a81b87f8a5ad82a91c0de7070fe61b91528841.tar.xz
wireguard-openbsd-b0a81b87f8a5ad82a91c0de7070fe61b91528841.zip
Only invoke setcurcpu() #ifdef MULTIPROCESSOR
-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.