Changeset 57108 in vbox
- Timestamp:
- Jul 28, 2015 11:49:23 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101836
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/sup.h
r57090 r57108 102 102 /** GDT is read-only. */ 103 103 #define SUPKERNELFEATURES_GDT_READ_ONLY RT_BIT(0) 104 /** SMAP is possibly enabled. */ 105 #define SUPKERNELFEATURES_SMAP RT_BIT(1) 104 106 /** @} */ 105 107 … … 1799 1801 SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 1800 1802 SUPR0DECL(SUPPAGINGMODE) SUPR0GetPagingMode(void); 1801 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void);1802 1803 SUPR0DECL(RTCCUINTREG) SUPR0ChangeCR4(RTCCUINTREG fOrMask, RTCCUINTREG fAndMask); 1803 1804 SUPR0DECL(int) SUPR0EnableVTx(bool fEnable); … … 1809 1810 SUPR0DECL(int) SUPR0TscDeltaMeasureBySetIndex(PSUPDRVSESSION pSession, uint32_t iCpuSet, uint32_t fFlags, 1810 1811 RTMSINTERVAL cMsWaitRetry, RTMSINTERVAL cMsWaitThread, uint32_t cTries); 1812 1813 /** 1814 * Returns configuration flags of the host kernel. 1815 * 1816 * @returns Combination of SUPKERNELFEATURES_XXX flags. 1817 */ 1818 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void); 1819 1811 1820 1812 1821 /** @name Absolute symbols -
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.