summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/uts/i86pc/os/cpuid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/i86pc/os/cpuid.c b/usr/src/uts/i86pc/os/cpuid.c
index bdd582f9ec..a6c995049c 100644
--- a/usr/src/uts/i86pc/os/cpuid.c
+++ b/usr/src/uts/i86pc/os/cpuid.c
@@ -3438,14 +3438,14 @@ cpuid_pass2(cpu_t *cpu)
* (We already handled n == 0 and n == 1 in pass 1)
*/
for (n = 2, cp = &cpi->cpi_std[2]; n < nmax; n++, cp++) {
- cp->cp_eax = n;
-
/*
* leaves 6 and 7 were handled in pass 1
*/
if (n == 6 || n == 7)
continue;
+ cp->cp_eax = n;
+
/*
* CPUID function 4 expects %ecx to be initialized
* with an index which indicates which cache to return