aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-05-11 22:05:22 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-05-11 22:05:22 +0000
commit6cc8d3ac6b5e3ca0d8198e2b017dc3541687f12a (patch)
treee8b1e7704e98fec8b081c524ebd84065b4835d8f /sys/boot
parent338a21a47a253ff408a6179c140f2bd72de05c35 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/sparc64/loader/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c
index a73b6c0c255c..054563dcec3d 100644
--- a/sys/boot/sparc64/loader/main.c
+++ b/sys/boot/sparc64/loader/main.c
@@ -323,7 +323,8 @@ tlb_init(void)
if (OF_getprop(child, "device_type", buf, sizeof(buf)) > 0 &&
strcmp(buf, "cpu") == 0) {
if (OF_getprop(child, "upa-portid", &cpu,
- sizeof(cpu)) == -1)
+ sizeof(cpu)) == -1 && OF_getprop(child, "portid",
+ &cpu, sizeof(cpu)) == -1)
panic("main: OF_getprop");
if (cpu == bootcpu)
break;