Changeset 18690 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 3, 2009 1:26:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r18645 r18690 1549 1549 { 1550 1550 RMD rmd; 1551 RTGCPHYS32 addr = pcnetRdraAddr(pThis, i);1551 RTGCPHYS32 rdaddr = PHYSADDR(pThis, pcnetRdraAddr(pThis, i)); 1552 1552 /* At this time it is not guaranteed that the buffers are already initialized. */ 1553 if (pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), false))1553 if (pcnetRmdLoad(pThis, &rmd, rdaddr, false)) 1554 1554 { 1555 1555 /* Hack: Make sure that all RX buffers are touched when the … … 1563 1563 cbRxBuffers += cbBuf; 1564 1564 } 1565 PDMDevHlpPhysWrite(pDevIns, addr, (void*)&rmd, sizeof(rmd));1565 PDMDevHlpPhysWrite(pDevIns, rdaddr, (void*)&rmd, sizeof(rmd)); 1566 1566 } 1567 1567 … … 1569 1569 { 1570 1570 TMD tmd; 1571 RTGCPHYS32 addr = pcnetRdraAddr(pThis, i);1572 if (pcnetTmdLoad(pThis, &tmd, PHYSADDR(pThis, addr), false))1571 RTGCPHYS32 tdaddr = PHYSADDR(pThis, pcnetTdraAddr(pThis, i)); 1572 if (pcnetTmdLoad(pThis, &tmd, tdaddr, false)) 1573 1573 { 1574 1574 /* Hack: Make sure that all TX buffers are touched when the 1575 * device is initialized. */ 1575 * device is initialized. Of course it is unlikely that the 1576 * TX buffers are already owned by the device right now. */ 1576 1577 static char aBuf[4096]; 1577 1578 uint32_t cbBuf = 4096U-tmd.tmd1.bcnt; … … 1581 1582 PDMDevHlpPhysWrite(pDevIns, tbadr, aBuf, RT_MIN(sizeof(aBuf), cbBuf)); 1582 1583 } 1583 PDMDevHlpPhysWrite(pDevIns, addr, (void*)&tmd, sizeof(tmd));1584 PDMDevHlpPhysWrite(pDevIns, tdaddr, (void*)&tmd, sizeof(tmd)); 1584 1585 } 1585 1586
Note:
See TracChangeset
for help on using the changeset viewer.