VirtualBox

Changeset 13421 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 21, 2008 9:26:26 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38181
Message:

win64 VMMR0->VBoxNetFlt and VBoxNetFlt->VMMR0 locate/create marker call wrapping

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r13375 r13421  
    765765        Serial/DrvHostSerial.cpp
    766766
    767 if defined(VBOX_WITH_NETFLT) && "$(KBUILD_TARGET)" == "win"
     767if defined(VBOX_WITH_NETFLT)
    768768 if defined(VBOX_NETFLT_ONDEMAND_BIND)
    769   Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
    770  else
    771   Drivers_SOURCES.win += Network/win/DrvIntNet-win.cpp
    772  endif
     769  Drivers_DEFS.win     += VBOX_NETFLT_ONDEMAND_BIND
     770 endif
     771 Drivers_SOURCES.win   += Network/win/DrvIntNet-win.cpp
    773772endif
    774773
     
    877876ServicesR0_SOURCES   = \
    878877        Network/SrvIntNetR0.cpp
     878
     879if defined(VBOX_WITH_NETFLT)
     880 ServicesR0_SOURCES.win.amd64 += Network/win/SrvIntNetR0A-win.asm
     881 ServicesR0_DEFS.win.amd64    += SUPDRV_WITH_UNWIND_HACK
     882endif
     883
    879884
    880885#
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r11236 r13421  
    33013301
    33023302
    3303 
    3304 
     3303#ifdef SUPDRV_WITH_UNWIND_HACK
     3304# if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
     3305#  define INTNET_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type))
     3306#  define INTNET_CALLBACK(_n) intnetNtWrap##_n
     3307
     3308   /* wrapper callback declarations */
     3309   INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys)(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable);
     3310   INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortRecv)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc);
     3311   INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG);
     3312   INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG);
     3313
     3314# else
     3315#  error "UNSUPPORTED (SUPDRV_WITH_UNWIND_HACK)"
     3316# endif
     3317#else
     3318#  define INTNET_DECL_CALLBACK(_t) static DECLCALLBACK(_t)
     3319#  define INTNET_CALLBACK(_n) _n
     3320#endif
    33053321
    33063322/** @copydoc INTNETTRUNKSWPORT::pfnSetSGPhys */
    3307 static DECLCALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)
     3323INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)
    33083324{
    33093325    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    33143330
    33153331/** @copydoc INTNETTRUNKSWPORT::pfnRecv */
    3316 static DECLCALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)
     3332INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)
    33173333{
    33183334    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    33453361
    33463362/** @copydoc INTNETTRUNKSWPORT::pfnSGRetain */
    3347 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
     3363INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
    33483364{
    33493365    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    33623378
    33633379/** @copydoc INTNETTRUNKSWPORT::pfnSGRelease */
    3364 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
     3380INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
    33653381{
    33663382    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    35923608        return VERR_NO_MEMORY;
    35933609    pTrunkIF->SwitchPort.u32Version     = INTNETTRUNKSWPORT_VERSION;
    3594     pTrunkIF->SwitchPort.pfnSetSGPhys   = intnetR0TrunkIfPortSetSGPhys;
    3595     pTrunkIF->SwitchPort.pfnRecv        = intnetR0TrunkIfPortRecv;
    3596     pTrunkIF->SwitchPort.pfnSGRetain    = intnetR0TrunkIfPortSGRetain;
    3597     pTrunkIF->SwitchPort.pfnSGRelease   = intnetR0TrunkIfPortSGRelease;
     3610    pTrunkIF->SwitchPort.pfnSetSGPhys   = INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys);
     3611    pTrunkIF->SwitchPort.pfnRecv        = INTNET_CALLBACK(intnetR0TrunkIfPortRecv);
     3612    pTrunkIF->SwitchPort.pfnSGRetain    = INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain);
     3613    pTrunkIF->SwitchPort.pfnSGRelease   = INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease);
    35983614    pTrunkIF->SwitchPort.u32VersionEnd  = INTNETTRUNKSWPORT_VERSION;
    35993615    //pTrunkIF->pIfPort = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette