VirtualBox

Changeset 25275 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 9, 2009 3:58:31 PM (15 years ago)
Author:
vboxsync
Message:

SUPDrv: Added SUPGetGIP and added a fNativeLoader indicator to SUPLDROPEN (VBOX_WITH_NATIVE_R0_LOADER).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r23725 r25275  
    220220extern DECLEXPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
    221221#elif defined(IN_RING0)
     222# if 0 /* VBOX_WITH_NATIVE_R0_LOADER */
     223#  define g_pSUPGlobalInfoPage          (SUPGetGIP())
     224# else
    222225extern DECLIMPORT(SUPGLOBALINFOPAGE)    g_SUPGlobalInfoPage;
    223 # if defined(__GNUC__) && !defined(RT_OS_DARWIN) && defined(RT_ARCH_AMD64)
     226#  if defined(__GNUC__) && !defined(RT_OS_DARWIN) && defined(RT_ARCH_AMD64)
    224227/** Workaround for ELF+GCC problem on 64-bit hosts.
    225228 * (GCC emits a mov with a R_X86_64_32 reloc, we need R_X86_64_64.) */
    226 DECLINLINE(PSUPGLOBALINFOPAGE) SUPGetGIP(void)
     229DECLINLINE(PSUPGLOBALINFOPAGE) SUPGetGIPHlp(void)
    227230{
    228231    PSUPGLOBALINFOPAGE pGIP;
     
    231234    return pGIP;
    232235}
    233 #  define g_pSUPGlobalInfoPage          (SUPGetGIP())
    234 # else
    235 #  define g_pSUPGlobalInfoPage          (&g_SUPGlobalInfoPage)
     236#   define g_pSUPGlobalInfoPage          (SUPGetGIPHlp())
     237#  else
     238#   define g_pSUPGlobalInfoPage          (&g_SUPGlobalInfoPage)
     239#  endif
    236240# endif
    237241#else
     
    239243#endif
    240244
     245/**
     246 * Gets the GIP pointer.
     247 *
     248 * @returns Pointer to the GIP or NULL.
     249 */
     250SUPDECL(PSUPGLOBALINFOPAGE)             SUPGetGIP(void);
    241251
    242252/**
Note: See TracChangeset for help on using the changeset viewer.

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