Changeset 57108 in vbox for trunk/src/VBox/HostDrivers/Support/darwin
- Timestamp:
- Jul 28, 2015 11:49:23 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101836
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r56702 r57108 1400 1400 } 1401 1401 1402 1402 1403 /** 1403 1404 * Check if the CPU has SMAP support. … … 1417 1418 } 1418 1419 1420 1419 1421 RTDECL(int) SUPR0Printf(const char *pszFormat, ...) 1420 1422 { … … 1432 1434 1433 1435 1434 /**1435 * Returns configuration flags of the host kernel.1436 */1437 1436 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 1438 1437 { 1439 return 0; 1438 uint32_t fFlags = 0; 1439 if (ASMGetCR4() & X86_CR4_SMAP) 1440 fFlags |= SUPKERNELFEATURES_SMAP; 1441 return fFlags; 1440 1442 } 1441 1443
Note:
See TracChangeset
for help on using the changeset viewer.