1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Try both upa-portid and portid properties when finding the module id of a

secondary cpu.  Its called portid on UltraSPARCIII machines.
This commit is contained in:
Jake Burkholder 2002-07-14 00:08:58 +00:00
parent 1ff72decea
commit e32cbadc61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99936

View File

@ -235,7 +235,8 @@ cpu_mp_start(void)
if (OF_getprop(child, "device_type", buf, sizeof(buf)) <= 0 ||
strcmp(buf, "cpu") != 0)
continue;
if (OF_getprop(child, "upa-portid", &mid, sizeof(mid)) <= 0)
if (OF_getprop(child, "upa-portid", &mid, sizeof(mid)) <= 0 &&
OF_getprop(child, "portid", &mid, sizeof(mid)) <= 0)
panic("cpu_mp_start: can't get module id");
if (mid == mp_boot_mid)
continue;