VirtualBox

Ignore:
Timestamp:
Dec 11, 2009 5:09:23 PM (15 years ago)
Author:
vboxsync
Message:

HostDrivers,SrvIntNetR0,iprt/ntwrap.mac: Removed all the RT_WITH_W64_UNWIND_HACK fun.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r20715 r25336  
    34103410
    34113411
    3412 #ifdef RT_WITH_W64_UNWIND_HACK
    3413 # if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
    3414 #  define INTNET_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type))
    3415 #  define INTNET_CALLBACK(_n) intnetNtWrap##_n
    3416 
    3417    /* wrapper callback declarations */
    3418    INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys)(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable);
    3419    INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortRecv)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc);
    3420    INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG);
    3421    INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG);
    3422 
    3423 # else
    3424 #  error "UNSUPPORTED (RT_WITH_W64_UNWIND_HACK)"
    3425 # endif
    3426 #else
    3427 #  define INTNET_DECL_CALLBACK(_t) static DECLCALLBACK(_t)
     3412#  define static DECLCALLBACK(_t) static DECLCALLBACK(_t)
    34283413#  define INTNET_CALLBACK(_n) _n
    34293414#endif
    34303415
    34313416/** @copydoc INTNETTRUNKSWPORT::pfnSetSGPhys */
    3432 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)
     3417static DECLCALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)
    34333418{
    34343419    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    34393424
    34403425/** @copydoc INTNETTRUNKSWPORT::pfnRecv */
    3441 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)
     3426static DECLCALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)
    34423427{
    34433428    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    34703455
    34713456/** @copydoc INTNETTRUNKSWPORT::pfnSGRetain */
    3472 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
     3457static DECLCALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
    34733458{
    34743459    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    34873472
    34883473/** @copydoc INTNETTRUNKSWPORT::pfnSGRelease */
    3489 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
     3474static DECLCALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)
    34903475{
    34913476    PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort);
     
    37213706        return VERR_NO_MEMORY;
    37223707    pTrunkIF->SwitchPort.u32Version     = INTNETTRUNKSWPORT_VERSION;
    3723     pTrunkIF->SwitchPort.pfnSetSGPhys   = INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys);
    3724     pTrunkIF->SwitchPort.pfnRecv        = INTNET_CALLBACK(intnetR0TrunkIfPortRecv);
    3725     pTrunkIF->SwitchPort.pfnSGRetain    = INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain);
    3726     pTrunkIF->SwitchPort.pfnSGRelease   = INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease);
     3708    pTrunkIF->SwitchPort.pfnSetSGPhys   = intnetR0TrunkIfPortSetSGPhys;
     3709    pTrunkIF->SwitchPort.pfnRecv        = intnetR0TrunkIfPortRecv;
     3710    pTrunkIF->SwitchPort.pfnSGRetain    = intnetR0TrunkIfPortSGRetain;
     3711    pTrunkIF->SwitchPort.pfnSGRelease   = intnetR0TrunkIfPortSGRelease;
    37273712    pTrunkIF->SwitchPort.u32VersionEnd  = INTNETTRUNKSWPORT_VERSION;
    37283713    //pTrunkIF->pIfPort = NULL;
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