Changeset 7314 in vbox
- Timestamp:
- Mar 6, 2008 10:11:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r7266 r7314 603 603 uint8_t ownbyte; 604 604 605 if ( !BCR_SWSTYLE(pData))605 if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0)) 606 606 { 607 607 uint16_t xda[4]; … … 646 646 STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatTmdStore), a); 647 647 PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData); 648 if ( !BCR_SWSTYLE(pData))648 if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0)) 649 649 { 650 650 uint16_t xda[4]; … … 689 689 uint8_t ownbyte; 690 690 691 if ( !BCR_SWSTYLE(pData))691 if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0)) 692 692 { 693 693 uint16_t rda[4]; … … 730 730 { 731 731 PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData); 732 if ( !BCR_SWSTYLE(pData))732 if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0)) 733 733 { 734 734 uint16_t rda[4]; … … 1884 1884 Assert(cbFrame < sizeof(pData->abSendBuf)); 1885 1885 1886 PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, 1887 &pData->abSendBuf[0], 1888 cbFrame); 1886 PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, &pData->abSendBuf[0], cbFrame); 1889 1887 pData->SendFrame.pvBuf = pData->abSendBuf; 1890 1888 pData->SendFrame.cb = cbFrame; … … 1898 1896 { 1899 1897 Assert(pData->SendFrame.cb + cbFrame < sizeof(pData->abSendBuf)); 1900 PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, 1901 &pData->abSendBuf[pData->SendFrame.cb], 1902 cbFrame); 1898 PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, &pData->abSendBuf[pData->SendFrame.cb], cbFrame); 1903 1899 pData->SendFrame.cb += cbFrame; 1904 1900 } … … 4638 4634 4639 4635 unsigned i; 4636 NOREF(i); 4637 4640 4638 #ifdef PCNET_QUEUE_SEND_PACKETS 4641 4639 pData->ulXmitRingBufProd = 0; … … 4643 4641 pData->pXmitRingBuffer[0] = (char *)RTMemAlloc(PCNET_MAX_XMIT_SLOTS * 1536); 4644 4642 pData->cbXmitRingBuffer[0] = 0; 4645 for (i =1;i<PCNET_MAX_XMIT_SLOTS;i++)4643 for (i = 1; i < PCNET_MAX_XMIT_SLOTS; i++) 4646 4644 { 4647 4645 pData->pXmitRingBuffer[i] = pData->pXmitRingBuffer[i-1] + 1536;
Note:
See TracChangeset
for help on using the changeset viewer.