Changeset 25275 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Dec 9, 2009 3:58:31 PM (15 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r25262 r25275 261 261 * Global Variables * 262 262 *******************************************************************************/ 263 /** Pointer to the global info page for implementing SUPGetGIP(). */ 264 static PSUPGLOBALINFOPAGE g_pSUPGlobalInfoPageInternal = NULL; 265 263 266 /** 264 267 * Array of the R0 SUP API. … … 313 316 { "SUPR0GetPagingMode", (void *)UNWIND_WRAP(SUPR0GetPagingMode) }, 314 317 { "SUPR0EnableVTx", (void *)SUPR0EnableVTx }, 318 { "SUPGetGIP", (void *)SUPGetGIP }, 315 319 { "RTMemAlloc", (void *)UNWIND_WRAP(RTMemAlloc) }, 316 320 { "RTMemAllocZ", (void *)UNWIND_WRAP(RTMemAllocZ) }, … … 3079 3083 3080 3084 /** 3085 * Gets the GIP pointer. 3086 * 3087 * @returns Pointer to the GIP or NULL. 3088 */ 3089 SUPDECL(PSUPGLOBALINFOPAGE) SUPGetGIP(void) 3090 { 3091 return g_pSUPGlobalInfoPageInternal; 3092 } 3093 3094 3095 /** 3081 3096 * Register a component factory with the support driver. 3082 3097 * … … 3455 3470 pReq->u.Out.pvImageBase = pImage->pvImage; 3456 3471 pReq->u.Out.fNeedsLoading = pImage->uState == SUP_IOCTL_LDR_OPEN; 3472 #ifdef VBOX_WITH_NATIVE_R0_LOADER 3473 pReq->u.Out.fNativeLoader = pImage->fNative; 3474 #endif 3457 3475 supdrvLdrAddUsage(pSession, pImage); 3458 3476 RTSemFastMutexRelease(pDevExt->mtxLdr); … … 3534 3552 supdrvLdrAddUsage(pSession, pImage); 3535 3553 3536 pReq->u.Out.pvImageBase = pImage->pvImage;3554 pReq->u.Out.pvImageBase = pImage->pvImage; 3537 3555 pReq->u.Out.fNeedsLoading = true; 3556 #ifdef VBOX_WITH_NATIVE_R0_LOADER 3557 pReq->u.Out.fNativeLoader = pImage->fNative; 3558 #endif 3538 3559 RTSemFastMutexRelease(pDevExt->mtxLdr); 3539 3560 … … 4543 4564 */ 4544 4565 dprintf(("supdrvGipCreate: %ld ns interval.\n", (long)u32Interval)); 4566 g_pSUPGlobalInfoPageInternal = pGip; 4545 4567 return VINF_SUCCESS; 4546 4568 } … … 4580 4602 pDevExt->pGip = NULL; 4581 4603 } 4604 g_pSUPGlobalInfoPageInternal = NULL; 4582 4605 4583 4606 /* -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r25260 r25275 320 320 /** Indicate whether or not the image requires loading. */ 321 321 bool fNeedsLoading; 322 #ifdef VBOX_WITH_NATIVE_R0_LOADER 323 /** Indicates that we're using the native ring-0 loader. */ 324 bool fNativeLoader; 325 #endif 322 326 } Out; 323 327 } u; -
trunk/src/VBox/HostDrivers/Support/SUPR0.def
r25263 r25275 30 30 31 31 LIBRARY SUPR0.dll 32 ;LIBRARY VBoxDrv.sys - @todo VBOX_WITH_NATIVE_R0_LOADER32 ;LIBRARY VBoxDrv.sys ;- @todo VBOX_WITH_NATIVE_R0_LOADER 33 33 34 34 EXPORTS … … 69 69 SUPR0GetPagingMode 70 70 SUPR0EnableVTx 71 SUPGetGIP 71 72 RTMemAlloc 72 73 RTMemAllocZ
Note:
See TracChangeset
for help on using the changeset viewer.