summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-24 11:49:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-24 11:49:26 +0000
commite073269740e1f2e6fe25d2a01cca47b1d9675434 (patch)
treebfe52beac8d1866dd39387a702698d01ed50fe39 /sys/arch
parent18b76dcce0601d1d8bdbbb5e50827f3f38e687d3 (diff)
Use correct cpuid on sun4v.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/cpu.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/cpu.c b/sys/arch/sparc64/sparc64/cpu.c
index 7331682c048..3191483e933 100644
--- a/sys/arch/sparc64/sparc64/cpu.c
+++ b/sys/arch/sparc64/sparc64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.36 2008/03/23 23:46:21 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.37 2008/03/24 11:49:25 kettenis Exp $ */
/* $NetBSD: cpu.c,v 1.13 2001/05/26 21:27:15 chs Exp $ */
/*
@@ -460,8 +460,12 @@ cpu_boot_secondary_processors(void)
if (ci->ci_upaid == cpu_myid())
continue;
- cpuid = getpropint(ci->ci_node, "cpuid", -1);
- if (CPU_ISSUN4U && cpuid == -1) {
+ if (CPU_ISSUN4V)
+ cpuid = ci->ci_upaid;
+ else
+ cpuid = getpropint(ci->ci_node, "cpuid", -1);
+
+ if (cpuid == -1) {
prom_start_cpu(ci->ci_node,
(void *)cpu_mp_startup, ci->ci_paddr);
} else {