summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-03-25 19:42:55 +0000
committerderaadt <deraadt@openbsd.org>2010-03-25 19:42:55 +0000
commit8267033a8638e5014e51d0ac1bd4e6bcff677891 (patch)
tree67d376dab06ed523123136016f71e015e0c1cc52
parentUpdate to match renamed product id. (diff)
downloadwireguard-openbsd-8267033a8638e5014e51d0ac1bd4e6bcff677891.tar.xz
wireguard-openbsd-8267033a8638e5014e51d0ac1bd4e6bcff677891.zip
architectures which expect to hand-count the number of cpus must clear
ncpufound before counting, because it defaults to 1 (for those architectures which do not count) ok kettenis
-rw-r--r--sys/arch/socppc/socppc/mainbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/socppc/socppc/mainbus.c b/sys/arch/socppc/socppc/mainbus.c
index 0d0decfd081..f4b69114700 100644
--- a/sys/arch/socppc/socppc/mainbus.c
+++ b/sys/arch/socppc/socppc/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.4 2009/09/02 20:29:39 kettenis Exp $ */
+/* $OpenBSD: mainbus.c,v 1.5 2010/03/25 19:42:55 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -71,6 +71,7 @@ mainbus_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
+ ncpusfound = 0;
node = OF_finddevice("/cpus");
if (node != -1) {
for (node = OF_child(node); node != 0; node = OF_peer(node)) {