Hi tech@,

Here is a diff to use the CPU_IS_PRIMARY macro in identifycpu() on i386.

Comments? OK?

Index: sys/arch/i386/i386/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.636
diff -u -p -r1.636 machdep.c
--- sys/arch/i386/i386/machdep.c        31 May 2020 06:23:57 -0000      1.636
+++ sys/arch/i386/i386/machdep.c        13 Jul 2020 10:17:07 -0000
@@ -2106,7 +2106,7 @@ identifycpu(struct cpu_info *ci)
                            cpu_device);
        }
 
-       if (ci->ci_flags & CPUF_PRIMARY) {
+       if (CPU_IS_PRIMARY(ci)) {
                if (cpu_ecxfeature & CPUIDECX_RDRAND)
                        has_rdrand = 1;
                if (ci->ci_feature_sefflags_ebx & SEFF0EBX_RDSEED)

Reply via email to