Changeset 85124 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jul 8, 2020 9:13:30 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139064
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r85121 r85124 97 97 * Well, at least parts of it, specifically the parts that are being handed over 98 98 * via the pre-init mechanism from the hardened executable stub. */ 99 SUPLIBDATAg_supLibData =99 DECL_HIDDEN_DATA(SUPLIBDATA) g_supLibData = 100 100 { 101 101 /*.hDevice = */ SUP_HDEVICE_NIL, … … 116 116 * @todo This will probably deserve it's own session or some other good solution... 117 117 */ 118 DECLEXPORT(PSUPGLOBALINFOPAGE) g_pSUPGlobalInfoPage;118 DECLEXPORT(PSUPGLOBALINFOPAGE) g_pSUPGlobalInfoPage; 119 119 /** Address of the ring-0 mapping of the GIP. */ 120 PSUPGLOBALINFOPAGE g_pSUPGlobalInfoPageR0;120 PSUPGLOBALINFOPAGE g_pSUPGlobalInfoPageR0; 121 121 /** The physical address of the GIP. */ 122 static RTHCPHYS g_HCPhysSUPGlobalInfoPage = NIL_RTHCPHYS;122 static RTHCPHYS g_HCPhysSUPGlobalInfoPage = NIL_RTHCPHYS; 123 123 124 124 /** The negotiated cookie. */ 125 uint32_tg_u32Cookie = 0;125 DECL_HIDDEN_DATA(uint32_t) g_u32Cookie = 0; 126 126 /** The negotiated session cookie. */ 127 uint32_tg_u32SessionCookie;127 DECL_HIDDEN_DATA(uint32_t) g_u32SessionCookie; 128 128 /** Session handle. */ 129 PSUPDRVSESSIONg_pSession;129 DECL_HIDDEN_DATA(PSUPDRVSESSION) g_pSession; 130 130 /** R0 SUP Functions used for resolving referenced to the SUPR0 module. */ 131 PSUPQUERYFUNCSg_pSupFunctions;131 DECL_HIDDEN_DATA(PSUPQUERYFUNCS) g_pSupFunctions; 132 132 133 133 /** PAGE_ALLOC_EX sans kernel mapping support indicator. */ 134 static bool g_fSupportsPageAllocNoKernel = true;134 static bool g_fSupportsPageAllocNoKernel = true; 135 135 /** Fake mode indicator. (~0 at first, 0 or 1 after first test) */ 136 uint32_tg_uSupFakeMode = UINT32_MAX;136 DECL_HIDDEN_DATA(uint32_t) g_uSupFakeMode = UINT32_MAX; 137 137 138 138 -
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r85123 r85124 339 339 * Global Variables * 340 340 *******************************************************************************/ 341 extern DECL HIDDEN(uint32_t)g_u32Cookie;342 extern DECL HIDDEN(uint32_t)g_u32SessionCookie;343 extern DECL HIDDEN(SUPLIBDATA)g_supLibData;344 extern DECL HIDDEN(uint32_t)g_uSupFakeMode;345 extern DECL HIDDEN(PSUPGLOBALINFOPAGE)g_pSUPGlobalInfoPageR0;341 extern DECL_HIDDEN_DATA(uint32_t) g_u32Cookie; 342 extern DECL_HIDDEN_DATA(uint32_t) g_u32SessionCookie; 343 extern DECL_HIDDEN_DATA(SUPLIBDATA) g_supLibData; 344 extern DECL_HIDDEN_DATA(uint32_t) g_uSupFakeMode; 345 extern DECL_HIDDEN_DATA(PSUPGLOBALINFOPAGE) g_pSUPGlobalInfoPageR0; 346 346 #ifdef VBOX_INCLUDED_SRC_Support_SUPDrvIOC_h 347 extern DECL HIDDEN(PSUPQUERYFUNCS)g_pSupFunctions;348 #endif 349 extern DECL HIDDEN(SUPR3HARDENEDMAINSTATE) g_enmSupR3HardenedMainState;347 extern DECL_HIDDEN_DATA(PSUPQUERYFUNCS) g_pSupFunctions; 348 #endif 349 extern DECL_HIDDEN_DATA(SUPR3HARDENEDMAINSTATE) g_enmSupR3HardenedMainState; 350 350 #ifdef RT_OS_WINDOWS 351 extern DECL HIDDEN(bool)g_fSupEarlyProcessInit;351 extern DECL_HIDDEN_DATA(bool) g_fSupEarlyProcessInit; 352 352 #endif 353 353 -
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r84671 r85124 199 199 200 200 KMOD_EXPLICIT_DECL(VBoxDrv, VBOX_VERSION_STRING, _start, _stop) 201 DECL HIDDEN(kmod_start_func_t *) _realmain = VBoxDrvDarwinStart;202 DECL HIDDEN(kmod_stop_func_t *) _antimain = VBoxDrvDarwinStop;203 DECL HIDDEN(int) _kext_apple_cc = __APPLE_CC__;201 DECL_HIDDEN_DATA(kmod_start_func_t *) _realmain = VBoxDrvDarwinStart; 202 DECL_HIDDEN_DATA(kmod_stop_func_t *) _antimain = VBoxDrvDarwinStop; 203 DECL_HIDDEN_DATA(int) _kext_apple_cc = __APPLE_CC__; 204 204 RT_C_DECLS_END 205 205 -
trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp
r85121 r85124 139 139 RT_C_DECLS_BEGIN 140 140 /** Resume patch for dlopen(), jumped to form assembly stub. */ 141 DECL HIDDEN(PFNDLOPEN)g_pfnDlopenReal = NULL;141 DECL_HIDDEN_DATA(PFNDLOPEN) g_pfnDlopenReal = NULL; 142 142 #ifdef SUP_HARDENED_WITH_DLMOPEN 143 143 /** Resume patch for dlmopen(), jumped to form assembly stub. */ 144 DECL HIDDEN(PFNDLMOPEN)g_pfnDlmopenReal = NULL;144 DECL_HIDDEN_DATA(PFNDLMOPEN) g_pfnDlmopenReal = NULL; 145 145 #endif 146 146 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.