Changeset 25275 in vbox for trunk/include/VBox
- Timestamp:
- Dec 9, 2009 3:58:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/sup.h
r23725 r25275 220 220 extern DECLEXPORT(PSUPGLOBALINFOPAGE) g_pSUPGlobalInfoPage; 221 221 #elif defined(IN_RING0) 222 # if 0 /* VBOX_WITH_NATIVE_R0_LOADER */ 223 # define g_pSUPGlobalInfoPage (SUPGetGIP()) 224 # else 222 225 extern 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) 224 227 /** Workaround for ELF+GCC problem on 64-bit hosts. 225 228 * (GCC emits a mov with a R_X86_64_32 reloc, we need R_X86_64_64.) */ 226 DECLINLINE(PSUPGLOBALINFOPAGE) SUPGetGIP (void)229 DECLINLINE(PSUPGLOBALINFOPAGE) SUPGetGIPHlp(void) 227 230 { 228 231 PSUPGLOBALINFOPAGE pGIP; … … 231 234 return pGIP; 232 235 } 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 236 240 # endif 237 241 #else … … 239 243 #endif 240 244 245 /** 246 * Gets the GIP pointer. 247 * 248 * @returns Pointer to the GIP or NULL. 249 */ 250 SUPDECL(PSUPGLOBALINFOPAGE) SUPGetGIP(void); 241 251 242 252 /**
Note:
See TracChangeset
for help on using the changeset viewer.