VirtualBox

Changeset 85124 in vbox for trunk/src/VBox/Runtime/r0drv


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/Runtime/r0drv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/initterm-r0drv-darwin.cpp

    r83074 r85124  
    4343*********************************************************************************************************************************/
    4444/** Pointer to the lock group used by IPRT. */
    45 lck_grp_t                  *g_pDarwinLockGroup = NULL;
     45DECL_HIDDEN_DATA(lck_grp_t *)                   g_pDarwinLockGroup = NULL;
    4646/** Pointer to the ast_pending function, if found. */
    47 PFNR0DARWINASTPENDING       g_pfnR0DarwinAstPending = NULL;
     47DECL_HIDDEN_DATA(PFNR0DARWINASTPENDING)         g_pfnR0DarwinAstPending = NULL;
    4848/** Pointer to the cpu_interrupt function, if found. */
    49 PFNR0DARWINCPUINTERRUPT     g_pfnR0DarwinCpuInterrupt = NULL;
     49DECL_HIDDEN_DATA(PFNR0DARWINCPUINTERRUPT)       g_pfnR0DarwinCpuInterrupt = NULL;
    5050#ifdef DEBUG
    5151/** Pointer to the vm_fault_external function - used once for debugging @bugref{9466}. */
    52 PFNR0DARWINVMFAULTEXTERNAL  g_pfnR0DarwinVmFaultExternal = NULL;
     52DECL_HIDDEN_DATA(PFNR0DARWINVMFAULTEXTERNAL)    g_pfnR0DarwinVmFaultExternal = NULL;
    5353#endif
    5454
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r83074 r85124  
    203203typedef uint32_t *  (*PFNR0DARWINASTPENDING)(void);
    204204typedef void        (*PFNR0DARWINCPUINTERRUPT)(int);
    205 extern lck_grp_t                  *g_pDarwinLockGroup;
    206 extern PFNR0DARWINASTPENDING       g_pfnR0DarwinAstPending;
    207 extern PFNR0DARWINCPUINTERRUPT     g_pfnR0DarwinCpuInterrupt;
     205extern DECL_HIDDEN_DATA(lck_grp_t *)                 g_pDarwinLockGroup;
     206extern DECL_HIDDEN_DATA(PFNR0DARWINASTPENDING)       g_pfnR0DarwinAstPending;
     207extern DECL_HIDDEN_DATA(PFNR0DARWINCPUINTERRUPT)     g_pfnR0DarwinCpuInterrupt;
    208208#ifdef DEBUG /* Used once for debugging memory issues (see #9466). */
    209209typedef kern_return_t (*PFNR0DARWINVMFAULTEXTERNAL)(vm_map_t, vm_map_offset_t, vm_prot_t, boolean_t, int, pmap_t, vm_map_offset_t);
    210 extern PFNR0DARWINVMFAULTEXTERNAL g_pfnR0DarwinVmFaultExternal;
     210extern DECL_HIDDEN_DATA(PFNR0DARWINVMFAULTEXTERNAL) g_pfnR0DarwinVmFaultExternal;
    211211#endif
    212212
  • trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c

    r82968 r85124  
    360360    return rc;
    361361}
     362
     363
    362364DECLHIDDEN(int) rtR0MemObjNativeAllocPage(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable)
    363365{
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