Changeset 42024 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jul 5, 2012 12:10:53 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78914
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r41755 r42024 3106 3106 if (cr4 & X86_CR4_PAE) 3107 3107 { 3108 uint32_t f AmdFeatures = ASMCpuId_EDX(0x80000001);3109 if (f AmdFeatures & (X86_CPUID_AMD_FEATURE_EDX_NX | X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))3108 uint32_t fExtFeatures = ASMCpuId_EDX(0x80000001); 3109 if (fExtFeatures & (X86_CPUID_EXT_FEATURE_EDX_NX | X86_CPUID_EXT_FEATURE_EDX_LONG_MODE)) 3110 3110 { 3111 3111 uint64_t efer = ASMRdMsr(MSR_K6_EFER); 3112 if ((f AmdFeatures & X86_CPUID_AMD_FEATURE_EDX_NX) && (efer & MSR_K6_EFER_NXE))3112 if ((fExtFeatures & X86_CPUID_EXT_FEATURE_EDX_NX) && (efer & MSR_K6_EFER_NXE)) 3113 3113 fNXEPlusLMA |= RT_BIT(0); 3114 if ((f AmdFeatures & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE) && (efer & MSR_K6_EFER_LMA))3114 if ((fExtFeatures & X86_CPUID_EXT_FEATURE_EDX_LONG_MODE) && (efer & MSR_K6_EFER_LMA)) 3115 3115 fNXEPlusLMA |= RT_BIT(1); 3116 3116 }
Note:
See TracChangeset
for help on using the changeset viewer.