]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/Diagnostics.c
xnu-3247.10.11.tar.gz
[apple/xnu.git] / osfmk / i386 / Diagnostics.c
index 3a513ab721abbd4a4365d4fd1c77f8da9958c132..50dad39705572c669a5c8c45ac5d38c71e155f5e 100644 (file)
@@ -225,6 +225,16 @@ diagCall64(x86_saved_state_t * state)
                pkes.IA_frequency_clipping_cause = ~0ULL;
 
                uint32_t ia_perf_limits = MSR_IA32_IA_PERF_LIMIT_REASONS;
+               /* Should perhaps be a generic register map module for these
+                * registers with identical functionality that were renumbered.
+                */
+               switch (cpuid_cpufamily()) {
+               case CPUFAMILY_INTEL_SKYLAKE:
+                       ia_perf_limits = MSR_IA32_IA_PERF_LIMIT_REASONS_SKL;
+                       break;
+               default:
+                       break;
+               }
 
                rdmsr64_carefully(ia_perf_limits, &pkes.IA_frequency_clipping_cause);