VirtualBox

Ignore:
Timestamp:
Feb 20, 2015 2:30:51 PM (10 years ago)
Author:
vboxsync
Message:

SUPDrv.c -> SUPDrv.cpp; SUPDrvSem.c -> SUPDrvSem.cpp

Location:
trunk/src/VBox/HostDrivers/Support
Files:
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r54327 r54331  
    616616 VBoxDrv_SOURCES          = \
    617617        SUPDrv.d \
    618         SUPDrv.c \
     618        SUPDrv.cpp \
    619619        SUPDrvGip.cpp \
    620         SUPDrvSem.c \
     620        SUPDrvSem.cpp \
    621621        SUPDrvTracer.cpp \
    622622        SUPLibAll.cpp
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r54327 r54331  
    16811681        }
    16821682
    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()):
    16841684        {
    16851685            /* validate */
     
    18991899        }
    19001900
    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()):
    19021902        {
    19031903            /* validate */
     
    19231923        }
    19241924
    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()):
    19261926        {
    19271927            /* validate */
     
    45754575    {
    45764576        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;
    45794579
    45804580        if (pImage->fNative)
     
    46034603                break;
    46044604            case SUPLDRLOADEP_SERVICE:
    4605                 pImage->pfnServiceReqHandler = pReq->u.In.EP.Service.pfnServiceReq;
     4605                pImage->pfnServiceReqHandler = (PFNSUPR0SERVICEREQHANDLER)pReq->u.In.EP.Service.pfnServiceReq;
    46064606                rc = VINF_SUCCESS;
    46074607                break;
     
    48894889            if (!strcmp(g_aFunctions[i].szName, pszSymbol))
    48904890            {
    4891                 pReq->u.Out.pfnSymbol = g_aFunctions[i].pfn;
     4891                pReq->u.Out.pfnSymbol = (PFNRT)g_aFunctions[i].pfn;
    48924892                break;
    48934893            }
     
    49584958    if (!pDevExt->pvVMMR0)
    49594959    {
    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... */
    49644965    }
    49654966    else
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r54308 r54331  
    403403        {
    404404            /** The address of module initialization function. Similar to _DLL_InitTerm(hmod, 0). */
    405             PFNR0MODULEINIT pfnModuleInit;
     405            RTR0PTR pfnModuleInit;
    406406            /** The address of module termination function. Similar to _DLL_InitTerm(hmod, 1). */
    407             PFNR0MODULETERM pfnModuleTerm;
     407            RTR0PTR pfnModuleTerm;
    408408            /** Special entry points. */
    409409            union
     
    527527 */
    528528#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)
    529530#define SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)                RT_UOFFSETOF(SUPCALLVMMR0, abReqPkt[cbReq])
    530531#define SUP_IOCTL_CALL_VMMR0_SIZE_IN(cbReq)             SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)
     
    987988 */
    988989#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)
    989991#define SUP_IOCTL_CALL_SERVICE_SIZE(cbReq)              RT_UOFFSETOF(SUPCALLSERVICE, abReqPkt[cbReq])
    990992#define SUP_IOCTL_CALL_SERVICE_SIZE_IN(cbReq)           SUP_IOCTL_CALL_SERVICE_SIZE(cbReq)
     
    10171019 */
    10181020#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)
    10191022#define SUP_IOCTL_LOGGER_SETTINGS_SIZE(cbStrTab)        RT_UOFFSETOF(SUPLOGGERSETTINGS, u.In.szStrings[cbStrTab])
    10201023#define SUP_IOCTL_LOGGER_SETTINGS_SIZE_IN(cbStrTab)     RT_UOFFSETOF(SUPLOGGERSETTINGS, u.In.szStrings[cbStrTab])
  • trunk/src/VBox/HostDrivers/Support/SUPDrvSem.cpp

    r54326 r54331  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
  • trunk/src/VBox/HostDrivers/Support/freebsd/files_vboxdrv

    r54327 r54331  
    8686    ${PATH_ROOT}/include/VBox/vmm/hm_svm.h=>include/VBox/vmm/hm_svm.h \
    8787    ${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 \
    8989    ${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 \
    9191    ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp=>SUPDrvTracer.c \
    9292    ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvIDC.h=>SUPDrvIDC.h \
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r54327 r54331  
    8080    ${PATH_ROOT}/include/VBox/vmm/hm_svm.h=>include/VBox/vmm/hm_svm.h \
    8181    ${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 \
    8383    ${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 \
    8585    ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp=>SUPDrvTracer.c \
    8686    ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp=>SUPDrvDTrace.c \
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