Attempt to not crash and burn on UltraSPARC III machines; the cpuid property
is named differently.
This commit is contained in:
parent
338a21a47a
commit
6cc8d3ac6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user