Changeset 57108 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Jul 28, 2015 11:49:23 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101836
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 6 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 -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r54581 r57108 627 627 628 628 629 /**630 * Returns configuration flags of the host kernel.631 */632 629 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 633 630 { -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r56293 r57108 1107 1107 1108 1108 1109 /**1110 * Returns configuration flags of the host kernel.1111 */1112 1109 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 1113 1110 { … … 1115 1112 #ifdef CONFIG_PAX_KERNEXEC 1116 1113 fFlags |= SUPKERNELFEATURES_GDT_READ_ONLY; 1114 #endif 1115 #ifdef CONFIG_X86_SMAP 1116 if (ASMGetCR4() & X86_CR4_SMAP) 1117 fFlags |= SUPKERNELFEATURES_SMAP; 1117 1118 #endif 1118 1119 return fFlags; -
trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp
r56293 r57108 521 521 522 522 523 /**524 * Returns configuration flags of the host kernel.525 */526 523 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 527 524 { -
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r56293 r57108 1286 1286 1287 1287 1288 /**1289 * Returns configuration flags of the host kernel.1290 */1291 1288 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 1292 1289 { -
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r56293 r57108 2254 2254 2255 2255 2256 /**2257 * Returns configuration flags of the host kernel.2258 */2259 2256 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void) 2260 2257 {
Note:
See TracChangeset
for help on using the changeset viewer.