summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-14 18:31:30 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-14 18:31:30 +0000
commita3549e7aa722e5f1ce1fc0b8634eb31989b5907f (patch)
tree3f436df73ecd62ba7bf82a2535b4057977e7c7bd /sys/arch/sparc64
parent62af0f2f024e0510ca335b33bc6529136b88a414 (diff)
Don't bail out after finding the first cpu.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c
index 50a1efae1e2..76a2706f3fe 100644
--- a/sys/arch/sparc64/sparc64/autoconf.c
+++ b/sys/arch/sparc64/sparc64/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.69 2007/08/07 21:20:54 kettenis Exp $ */
+/* $OpenBSD: autoconf.c,v 1.70 2007/10/14 18:31:29 kettenis Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
@@ -694,7 +694,7 @@ extern bus_space_tag_t mainbus_space_tag;
}
{
- /* XXX - what to do on multiprocessor machines? */
+ int found = 0;
for (node = OF_child(node); node; node = OF_peer(node)) {
if (OF_getprop(node, "device_type",
@@ -707,10 +707,11 @@ extern bus_space_tag_t mainbus_space_tag;
ma.ma_node = node;
ma.ma_name = "cpu";
config_found(dev, (void *)&ma, mbprint);
- break;
+ found++;
}
}
- if (node == 0)
+
+ if (!found)
panic("None of the CPUs found");
}