Hi tech@, Here is a diff to use the CPU_IS_PRIMARY macro on alpha and mips64.
Comments? OK? Index: sys/arch/alpha/alpha/cpu.c =================================================================== RCS file: /cvs/src/sys/arch/alpha/alpha/cpu.c,v retrieving revision 1.43 diff -u -p -r1.43 cpu.c --- sys/arch/alpha/alpha/cpu.c 29 May 2020 04:42:23 -0000 1.43 +++ sys/arch/alpha/alpha/cpu.c 13 Jul 2020 15:39:02 -0000 @@ -426,7 +426,7 @@ cpu_boot_secondary_processors(void) ci = cpu_info[i]; if (ci == NULL || ci->ci_idle_pcb == NULL) continue; - if (ci->ci_flags & CPUF_PRIMARY) + if (CPU_IS_PRIMARY(ci)) continue; if ((cpus_booted & (1UL << i)) == 0) continue; Index: sys/arch/mips64/mips64/cpu.c =================================================================== RCS file: /cvs/src/sys/arch/mips64/mips64/cpu.c,v retrieving revision 1.75 diff -u -p -r1.75 cpu.c --- sys/arch/mips64/mips64/cpu.c 11 Jul 2020 15:18:08 -0000 1.75 +++ sys/arch/mips64/mips64/cpu.c 13 Jul 2020 15:39:02 -0000 @@ -514,7 +514,7 @@ cpu_boot_secondary_processors(void) CPU_INFO_FOREACH(cii, ci) { if ((ci->ci_flags & CPUF_PRESENT) == 0) continue; - if (ci->ci_flags & CPUF_PRIMARY) + if (CPU_IS_PRIMARY(ci)) continue; ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;