VirtualBox

Ignore:
Timestamp:
Jul 8, 2020 9:13:30 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139064
Message:

*: Use DECL_HIDDEN_DATA for data, DECLHIDDEN will soon be exclusively for functions. bugref:9794

Location:
trunk/src/VBox/HostDrivers/Support
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r85121 r85124  
    9797 * Well, at least parts of it, specifically the parts that are being handed over
    9898 * via the pre-init mechanism from the hardened executable stub.  */
    99 SUPLIBDATA                      g_supLibData =
     99DECL_HIDDEN_DATA(SUPLIBDATA)    g_supLibData =
    100100{
    101101    /*.hDevice              = */    SUP_HDEVICE_NIL,
     
    116116 * @todo This will probably deserve it's own session or some other good solution...
    117117 */
    118 DECLEXPORT(PSUPGLOBALINFOPAGE)  g_pSUPGlobalInfoPage;
     118DECLEXPORT(PSUPGLOBALINFOPAGE)      g_pSUPGlobalInfoPage;
    119119/** Address of the ring-0 mapping of the GIP. */
    120 PSUPGLOBALINFOPAGE              g_pSUPGlobalInfoPageR0;
     120PSUPGLOBALINFOPAGE                  g_pSUPGlobalInfoPageR0;
    121121/** The physical address of the GIP. */
    122 static RTHCPHYS                 g_HCPhysSUPGlobalInfoPage = NIL_RTHCPHYS;
     122static RTHCPHYS                     g_HCPhysSUPGlobalInfoPage = NIL_RTHCPHYS;
    123123
    124124/** The negotiated cookie. */
    125 uint32_t                        g_u32Cookie = 0;
     125DECL_HIDDEN_DATA(uint32_t)          g_u32Cookie = 0;
    126126/** The negotiated session cookie. */
    127 uint32_t                        g_u32SessionCookie;
     127DECL_HIDDEN_DATA(uint32_t)          g_u32SessionCookie;
    128128/** Session handle. */
    129 PSUPDRVSESSION                  g_pSession;
     129DECL_HIDDEN_DATA(PSUPDRVSESSION)    g_pSession;
    130130/** R0 SUP Functions used for resolving referenced to the SUPR0 module. */
    131 PSUPQUERYFUNCS                  g_pSupFunctions;
     131DECL_HIDDEN_DATA(PSUPQUERYFUNCS)    g_pSupFunctions;
    132132
    133133/** PAGE_ALLOC_EX sans kernel mapping support indicator. */
    134 static bool                     g_fSupportsPageAllocNoKernel = true;
     134static bool                         g_fSupportsPageAllocNoKernel = true;
    135135/** Fake mode indicator. (~0 at first, 0 or 1 after first test) */
    136 uint32_t                        g_uSupFakeMode = UINT32_MAX;
     136DECL_HIDDEN_DATA(uint32_t)          g_uSupFakeMode = UINT32_MAX;
    137137
    138138
  • trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h

    r85123 r85124  
    339339*   Global Variables                                                           *
    340340*******************************************************************************/
    341 extern DECLHIDDEN(uint32_t)             g_u32Cookie;
    342 extern DECLHIDDEN(uint32_t)             g_u32SessionCookie;
    343 extern DECLHIDDEN(SUPLIBDATA)           g_supLibData;
    344 extern DECLHIDDEN(uint32_t)             g_uSupFakeMode;
    345 extern DECLHIDDEN(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPageR0;
     341extern DECL_HIDDEN_DATA(uint32_t)               g_u32Cookie;
     342extern DECL_HIDDEN_DATA(uint32_t)               g_u32SessionCookie;
     343extern DECL_HIDDEN_DATA(SUPLIBDATA)             g_supLibData;
     344extern DECL_HIDDEN_DATA(uint32_t)               g_uSupFakeMode;
     345extern DECL_HIDDEN_DATA(PSUPGLOBALINFOPAGE)     g_pSUPGlobalInfoPageR0;
    346346#ifdef VBOX_INCLUDED_SRC_Support_SUPDrvIOC_h
    347 extern DECLHIDDEN(PSUPQUERYFUNCS)       g_pSupFunctions;
    348 #endif
    349 extern DECLHIDDEN(SUPR3HARDENEDMAINSTATE) g_enmSupR3HardenedMainState;
     347extern DECL_HIDDEN_DATA(PSUPQUERYFUNCS)         g_pSupFunctions;
     348#endif
     349extern DECL_HIDDEN_DATA(SUPR3HARDENEDMAINSTATE) g_enmSupR3HardenedMainState;
    350350#ifdef RT_OS_WINDOWS
    351 extern DECLHIDDEN(bool)                 g_fSupEarlyProcessInit;
     351extern DECL_HIDDEN_DATA(bool)                   g_fSupEarlyProcessInit;
    352352#endif
    353353
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r84671 r85124  
    199199
    200200KMOD_EXPLICIT_DECL(VBoxDrv, VBOX_VERSION_STRING, _start, _stop)
    201 DECLHIDDEN(kmod_start_func_t *) _realmain = VBoxDrvDarwinStart;
    202 DECLHIDDEN(kmod_stop_func_t *)  _antimain = VBoxDrvDarwinStop;
    203 DECLHIDDEN(int)                 _kext_apple_cc = __APPLE_CC__;
     201DECL_HIDDEN_DATA(kmod_start_func_t *) _realmain = VBoxDrvDarwinStart;
     202DECL_HIDDEN_DATA(kmod_stop_func_t *)  _antimain = VBoxDrvDarwinStop;
     203DECL_HIDDEN_DATA(int)                 _kext_apple_cc = __APPLE_CC__;
    204204RT_C_DECLS_END
    205205
  • trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp

    r85121 r85124  
    139139RT_C_DECLS_BEGIN
    140140/** Resume patch for dlopen(), jumped to form assembly stub. */
    141 DECLHIDDEN(PFNDLOPEN)  g_pfnDlopenReal  = NULL;
     141DECL_HIDDEN_DATA(PFNDLOPEN)     g_pfnDlopenReal  = NULL;
    142142#ifdef SUP_HARDENED_WITH_DLMOPEN
    143143/** Resume patch for dlmopen(), jumped to form assembly stub. */
    144 DECLHIDDEN(PFNDLMOPEN) g_pfnDlmopenReal = NULL;
     144DECL_HIDDEN_DATA(PFNDLMOPEN)    g_pfnDlmopenReal = NULL;
    145145#endif
    146146RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette