VirtualBox

Ignore:
Timestamp:
Dec 11, 2009 5:09:23 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55929
Message:

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

Location:
trunk/src/VBox/HostDrivers/VBoxNetFlt
Files:
1 deleted
2 edited

Legend:

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

    r25302 r25336  
    5858VBoxNetFlt_LDFLAGS.win.x86 = -Entry:DriverEntry@8
    5959VBoxNetFlt_LDFLAGS.win.amd64 = -Entry:DriverEntry
    60 VBoxNetFlt_SOURCES.win.amd64 += win/VBoxNetFltA-win.asm
    61 VBoxNetFlt_DEFS.win.amd64    += RT_WITH_W64_UNWIND_HACK
    6260VBoxNetFlt_LIBS.win = \
    6361        $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
     
    261259VBoxNetAdp_LDFLAGS.win.x86 = -Entry:DriverEntry@8
    262260VBoxNetAdp_LDFLAGS.win.amd64 = -Entry:DriverEntry
    263 VBoxNetAdp_SOURCES.win.amd64 += win/VBoxNetFltA-win.asm
    264 VBoxNetAdp_DEFS.win.amd64    += RT_WITH_W64_UNWIND_HACK
    265261VBoxNetAdp_LIBS.win = \
    266262        $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c

    r24673 r25336  
    382382}
    383383
    384 #ifdef RT_WITH_W64_UNWIND_HACK
    385 # if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
    386 #  define NETFLT_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type))
    387 #  define NETFLT_CALLBACK(_n) netfltNtWrap##_n
    388 
    389 NETFLT_DECL_CALLBACK(int)  NETFLT_CALLBACK(vboxNetFltPortXmit)(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst);
    390 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortIsPromiscuous)(PINTNETTRUNKIFPORT pIfPort);
    391 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortGetMacAddress)(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac);
    392 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortIsHostMac)(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac);
    393 NETFLT_DECL_CALLBACK(int)  NETFLT_CALLBACK(vboxNetFltPortWaitForIdle)(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies);
    394 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortSetActive)(PINTNETTRUNKIFPORT pIfPort, bool fActive);
    395 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortDisconnectAndRelease)(PINTNETTRUNKIFPORT pIfPort);
    396 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortRetain)(PINTNETTRUNKIFPORT pIfPort);
    397 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortRelease)(PINTNETTRUNKIFPORT pIfPort);
    398 
    399 # else
    400 #  error "UNSUPPORTED (RT_WITH_W64_UNWIND_HACK)"
    401 # endif
    402 #else
    403 # define NETFLT_DECL_CALLBACK(type) static DECLCALLBACK(type)
    404 # define NETFLT_CALLBACK(_n) _n
    405 #endif
    406384
    407385/**
    408386 * @copydoc INTNETTRUNKIFPORT::pfnXmit
    409387 */
    410 NETFLT_DECL_CALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst)
     388static DECLCALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst)
    411389{
    412390    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    439417 * @copydoc INTNETTRUNKIFPORT::pfnIsPromiscuous
    440418 */
    441 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortIsPromiscuous(PINTNETTRUNKIFPORT pIfPort)
     419static DECLCALLBACK(bool) vboxNetFltPortIsPromiscuous(PINTNETTRUNKIFPORT pIfPort)
    442420{
    443421    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    461439 * @copydoc INTNETTRUNKIFPORT::pfnGetMacAddress
    462440 */
    463 NETFLT_DECL_CALLBACK(void) vboxNetFltPortGetMacAddress(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac)
     441static DECLCALLBACK(void) vboxNetFltPortGetMacAddress(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac)
    464442{
    465443    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    483461 * @copydoc INTNETTRUNKIFPORT::pfnIsHostMac
    484462 */
    485 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortIsHostMac(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac)
     463static DECLCALLBACK(bool) vboxNetFltPortIsHostMac(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac)
    486464{
    487465    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    505483 * @copydoc INTNETTRUNKIFPORT::pfnWaitForIdle
    506484 */
    507 NETFLT_DECL_CALLBACK(int) vboxNetFltPortWaitForIdle(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies)
     485static DECLCALLBACK(int) vboxNetFltPortWaitForIdle(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies)
    508486{
    509487    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    536514 * @copydoc INTNETTRUNKIFPORT::pfnSetActive
    537515 */
    538 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortSetActive(PINTNETTRUNKIFPORT pIfPort, bool fActive)
     516static DECLCALLBACK(bool) vboxNetFltPortSetActive(PINTNETTRUNKIFPORT pIfPort, bool fActive)
    539517{
    540518    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    571549 * @copydoc INTNETTRUNKIFPORT::pfnDisconnectAndRelease
    572550 */
    573 NETFLT_DECL_CALLBACK(void) vboxNetFltPortDisconnectAndRelease(PINTNETTRUNKIFPORT pIfPort)
     551static DECLCALLBACK(void) vboxNetFltPortDisconnectAndRelease(PINTNETTRUNKIFPORT pIfPort)
    574552{
    575553    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    726704 * @copydoc INTNETTRUNKIFPORT::pfnRetain
    727705 */
    728 NETFLT_DECL_CALLBACK(void) vboxNetFltPortRelease(PINTNETTRUNKIFPORT pIfPort)
     706static DECLCALLBACK(void) vboxNetFltPortRelease(PINTNETTRUNKIFPORT pIfPort)
    729707{
    730708    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    778756 * @copydoc INTNETTRUNKIFPORT::pfnRetain
    779757 */
    780 NETFLT_DECL_CALLBACK(void) vboxNetFltPortRetain(PINTNETTRUNKIFPORT pIfPort)
     758static DECLCALLBACK(void) vboxNetFltPortRetain(PINTNETTRUNKIFPORT pIfPort)
    781759{
    782760    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    862840    pNew->pNext                         = NULL;
    863841    pNew->MyPort.u32Version             = INTNETTRUNKIFPORT_VERSION;
    864     pNew->MyPort.pfnRetain              = NETFLT_CALLBACK(vboxNetFltPortRetain);
    865     pNew->MyPort.pfnRelease             = NETFLT_CALLBACK(vboxNetFltPortRelease);
    866     pNew->MyPort.pfnDisconnectAndRelease= NETFLT_CALLBACK(vboxNetFltPortDisconnectAndRelease);
    867     pNew->MyPort.pfnSetActive           = NETFLT_CALLBACK(vboxNetFltPortSetActive);
    868     pNew->MyPort.pfnWaitForIdle         = NETFLT_CALLBACK(vboxNetFltPortWaitForIdle);
    869     pNew->MyPort.pfnGetMacAddress       = NETFLT_CALLBACK(vboxNetFltPortGetMacAddress);
    870     pNew->MyPort.pfnIsHostMac           = NETFLT_CALLBACK(vboxNetFltPortIsHostMac);
    871     pNew->MyPort.pfnIsPromiscuous       = NETFLT_CALLBACK(vboxNetFltPortIsPromiscuous);
    872     pNew->MyPort.pfnXmit                = NETFLT_CALLBACK(vboxNetFltPortXmit);
     842    pNew->MyPort.pfnRetain              = vboxNetFltPortRetain;
     843    pNew->MyPort.pfnRelease             = vboxNetFltPortRelease;
     844    pNew->MyPort.pfnDisconnectAndRelease= vboxNetFltPortDisconnectAndRelease;
     845    pNew->MyPort.pfnSetActive           = vboxNetFltPortSetActive;
     846    pNew->MyPort.pfnWaitForIdle         = vboxNetFltPortWaitForIdle;
     847    pNew->MyPort.pfnGetMacAddress       = vboxNetFltPortGetMacAddress;
     848    pNew->MyPort.pfnIsHostMac           = vboxNetFltPortIsHostMac;
     849    pNew->MyPort.pfnIsPromiscuous       = vboxNetFltPortIsPromiscuous;
     850    pNew->MyPort.pfnXmit                = vboxNetFltPortXmit;
    873851    pNew->MyPort.u32VersionEnd          = INTNETTRUNKIFPORT_VERSION;
    874852    pNew->pSwitchPort                   = 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