]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/commpage/commpage.c
xnu-3247.10.11.tar.gz
[apple/xnu.git] / osfmk / i386 / commpage / commpage.c
index f11de05351d709c7f8fdd35891731f05a3331670..8bc648ca8ca84e21a59aa7f5443339b98ad49fdb 100644 (file)
@@ -306,6 +306,11 @@ commpage_init_cpu_capabilities( void )
        setif(bits, kHasADX,     cpuid_features() &
                                        CPUID_LEAF7_FEATURE_ADX);
        
+       setif(bits, kHasMPX,     cpuid_leaf7_features() &
+                                       CPUID_LEAF7_FEATURE_MPX);
+       setif(bits, kHasSGX,     cpuid_leaf7_features() &
+                                       CPUID_LEAF7_FEATURE_SGX);
+
        uint64_t misc_enable = rdmsr64(MSR_IA32_MISC_ENABLE);
        setif(bits, kHasENFSTRG, (misc_enable & 1ULL) &&
                                 (cpuid_leaf7_features() &