Attempt to not crash and burn on UltraSPARC III machines; the cpuid property

is named differently.
This commit is contained in:
Jake Burkholder 2002-05-11 22:05:22 +00:00
parent 338a21a47a
commit 6cc8d3ac6b

View File

@ -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;