Changeset 54331 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Feb 20, 2015 2:30:51 PM (10 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r54327 r54331 616 616 VBoxDrv_SOURCES = \ 617 617 SUPDrv.d \ 618 SUPDrv.c \618 SUPDrv.cpp \ 619 619 SUPDrvGip.cpp \ 620 SUPDrvSem.c \620 SUPDrvSem.cpp \ 621 621 SUPDrvTracer.cpp \ 622 622 SUPLibAll.cpp -
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r54327 r54331 1681 1681 } 1682 1682 1683 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_CALL_VMMR0 (0)):1683 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_CALL_VMMR0_NO_SIZE()): 1684 1684 { 1685 1685 /* validate */ … … 1899 1899 } 1900 1900 1901 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_CALL_SERVICE (0)):1901 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_CALL_SERVICE_NO_SIZE()): 1902 1902 { 1903 1903 /* validate */ … … 1923 1923 } 1924 1924 1925 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_LOGGER_SETTINGS (0)):1925 case SUP_CTL_CODE_NO_SIZE(SUP_IOCTL_LOGGER_SETTINGS_NO_SIZE()): 1926 1926 { 1927 1927 /* validate */ … … 4575 4575 { 4576 4576 pImage->uState = SUP_IOCTL_LDR_LOAD; 4577 pImage->pfnModuleInit = pReq->u.In.pfnModuleInit;4578 pImage->pfnModuleTerm = pReq->u.In.pfnModuleTerm;4577 pImage->pfnModuleInit = (PFNR0MODULEINIT)pReq->u.In.pfnModuleInit; 4578 pImage->pfnModuleTerm = (PFNR0MODULETERM)pReq->u.In.pfnModuleTerm; 4579 4579 4580 4580 if (pImage->fNative) … … 4603 4603 break; 4604 4604 case SUPLDRLOADEP_SERVICE: 4605 pImage->pfnServiceReqHandler = pReq->u.In.EP.Service.pfnServiceReq;4605 pImage->pfnServiceReqHandler = (PFNSUPR0SERVICEREQHANDLER)pReq->u.In.EP.Service.pfnServiceReq; 4606 4606 rc = VINF_SUCCESS; 4607 4607 break; … … 4889 4889 if (!strcmp(g_aFunctions[i].szName, pszSymbol)) 4890 4890 { 4891 pReq->u.Out.pfnSymbol = g_aFunctions[i].pfn;4891 pReq->u.Out.pfnSymbol = (PFNRT)g_aFunctions[i].pfn; 4892 4892 break; 4893 4893 } … … 4958 4958 if (!pDevExt->pvVMMR0) 4959 4959 { 4960 pDevExt->pvVMMR0 = pvVMMR0; 4961 pDevExt->pfnVMMR0EntryInt = pvVMMR0EntryInt; 4962 pDevExt->pfnVMMR0EntryFast = pvVMMR0EntryFast; 4963 pDevExt->pfnVMMR0EntryEx = pvVMMR0EntryEx; 4960 pDevExt->pvVMMR0 = pvVMMR0; 4961 *(void **)&pDevExt->pfnVMMR0EntryInt = pvVMMR0EntryInt; 4962 *(void **)&pDevExt->pfnVMMR0EntryFast = pvVMMR0EntryFast; 4963 *(void **)&pDevExt->pfnVMMR0EntryEx = pvVMMR0EntryEx; 4964 ASMCompilerBarrier(); /* the above isn't nice, so be careful... */ 4964 4965 } 4965 4966 else -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r54308 r54331 403 403 { 404 404 /** The address of module initialization function. Similar to _DLL_InitTerm(hmod, 0). */ 405 PFNR0MODULEINITpfnModuleInit;405 RTR0PTR pfnModuleInit; 406 406 /** The address of module termination function. Similar to _DLL_InitTerm(hmod, 1). */ 407 PFNR0MODULETERMpfnModuleTerm;407 RTR0PTR pfnModuleTerm; 408 408 /** Special entry points. */ 409 409 union … … 527 527 */ 528 528 #define SUP_IOCTL_CALL_VMMR0(cbReq) SUP_CTL_CODE_SIZE(7, SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)) 529 #define SUP_IOCTL_CALL_VMMR0_NO_SIZE() SUP_CTL_CODE_SIZE(7, 0) 529 530 #define SUP_IOCTL_CALL_VMMR0_SIZE(cbReq) RT_UOFFSETOF(SUPCALLVMMR0, abReqPkt[cbReq]) 530 531 #define SUP_IOCTL_CALL_VMMR0_SIZE_IN(cbReq) SUP_IOCTL_CALL_VMMR0_SIZE(cbReq) … … 987 988 */ 988 989 #define SUP_IOCTL_CALL_SERVICE(cbReq) SUP_CTL_CODE_SIZE(22, SUP_IOCTL_CALL_SERVICE_SIZE(cbReq)) 990 #define SUP_IOCTL_CALL_SERVICE_NO_SIZE(cbReq) SUP_CTL_CODE_SIZE(22, 0) 989 991 #define SUP_IOCTL_CALL_SERVICE_SIZE(cbReq) RT_UOFFSETOF(SUPCALLSERVICE, abReqPkt[cbReq]) 990 992 #define SUP_IOCTL_CALL_SERVICE_SIZE_IN(cbReq) SUP_IOCTL_CALL_SERVICE_SIZE(cbReq) … … 1017 1019 */ 1018 1020 #define SUP_IOCTL_LOGGER_SETTINGS(cbStrTab) SUP_CTL_CODE_SIZE(23, SUP_IOCTL_LOGGER_SETTINGS_SIZE(cbStrTab)) 1021 #define SUP_IOCTL_LOGGER_SETTINGS_NO_SIZE() SUP_CTL_CODE_SIZE(23, 0) 1019 1022 #define SUP_IOCTL_LOGGER_SETTINGS_SIZE(cbStrTab) RT_UOFFSETOF(SUPLOGGERSETTINGS, u.In.szStrings[cbStrTab]) 1020 1023 #define SUP_IOCTL_LOGGER_SETTINGS_SIZE_IN(cbStrTab) RT_UOFFSETOF(SUPLOGGERSETTINGS, u.In.szStrings[cbStrTab]) -
trunk/src/VBox/HostDrivers/Support/SUPDrvSem.cpp
r54326 r54331 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/HostDrivers/Support/freebsd/files_vboxdrv
r54327 r54331 86 86 ${PATH_ROOT}/include/VBox/vmm/hm_svm.h=>include/VBox/vmm/hm_svm.h \ 87 87 ${PATH_ROOT}/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c=>freebsd/SUPDrv-freebsd.c \ 88 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv.c =>SUPDrv.c \88 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv.cpp=>SUPDrv.c \ 89 89 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvGip.cpp=>SUPDrvGip.c \ 90 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvSem.c =>SUPDrvSem.c \90 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvSem.cpp=>SUPDrvSem.c \ 91 91 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp=>SUPDrvTracer.c \ 92 92 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvIDC.h=>SUPDrvIDC.h \ -
trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv
r54327 r54331 80 80 ${PATH_ROOT}/include/VBox/vmm/hm_svm.h=>include/VBox/vmm/hm_svm.h \ 81 81 ${PATH_ROOT}/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c=>linux/SUPDrv-linux.c \ 82 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv.c =>SUPDrv.c \82 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv.cpp=>SUPDrv.c \ 83 83 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvGip.cpp=>SUPDrvGip.c \ 84 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvSem.c =>SUPDrvSem.c \84 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvSem.cpp=>SUPDrvSem.c \ 85 85 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp=>SUPDrvTracer.c \ 86 86 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp=>SUPDrvDTrace.c \
Note:
See TracChangeset
for help on using the changeset viewer.