VirtualBox

Changeset 25278 in vbox for trunk/include


Ignore:
Timestamp:
Dec 9, 2009 4:37:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55820
Message:

SUPDrv: Major IOC version change - preparing to use the native ring-0 loader on windwos.

File:
1 edited

Legend:

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

    r25275 r25278  
    219219#if defined(IN_SUP_R0) || defined(IN_SUP_R3) || defined(IN_SUP_GC)
    220220extern DECLEXPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
    221 #elif defined(IN_RING0)
    222 # if 0 /* VBOX_WITH_NATIVE_R0_LOADER */
    223 #  define g_pSUPGlobalInfoPage          (SUPGetGIP())
     221
     222#elif !defined(IN_RING0) || defined(RT_OS_WINDOWS)
     223extern DECLIMPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
     224
     225#else /* IN_RING0 && !RT_OS_WINDOWS */
     226# if !defined(__GNUC__) || defined(RT_OS_DARWIN) || !defined(RT_ARCH_AMD64)
     227#  define g_pSUPGlobalInfoPage          (&g_SUPGlobalInfoPage)
    224228# else
    225 extern DECLIMPORT(SUPGLOBALINFOPAGE)    g_SUPGlobalInfoPage;
    226 #  if defined(__GNUC__) && !defined(RT_OS_DARWIN) && defined(RT_ARCH_AMD64)
     229#  define g_pSUPGlobalInfoPage          (SUPGetGIPHlp())
    227230/** Workaround for ELF+GCC problem on 64-bit hosts.
    228231 * (GCC emits a mov with a R_X86_64_32 reloc, we need R_X86_64_64.) */
     
    234237    return pGIP;
    235238}
    236 #   define g_pSUPGlobalInfoPage          (SUPGetGIPHlp())
    237 #  else
    238 #   define g_pSUPGlobalInfoPage          (&g_SUPGlobalInfoPage)
    239 #  endif
    240239# endif
    241 #else
    242 extern DECLIMPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
     240/** The GIP.
     241 * We save a level of indirection by exporting the GIP instead of a variable
     242 * pointing to it. */
     243extern DECLIMPORT(SUPGLOBALINFOPAGE)    g_SUPGlobalInfoPage;
    243244#endif
    244245
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