Changeset 78477 in vbox for trunk/src/VBox
- Timestamp:
- May 13, 2019 8:58:51 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 130512
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r78461 r78477 816 816 { 817 817 ((uint32_t*)tmd)[1] |= 0x80000000; 818 pcnetPhysWrite(pThis, addr, (void*)tmd, 1 6);818 pcnetPhysWrite(pThis, addr, (void*)tmd, 12); 819 819 ((uint32_t*)tmd)[1] &= ~0x80000000; 820 820 pcnetPhysWrite(pThis, addr+7, (uint8_t*)tmd + 7, 1); … … 822 822 else 823 823 { 824 uint32_t xda[ 4];824 uint32_t xda[3]; 825 825 xda[0] = ((uint32_t *)tmd)[2]; 826 826 xda[1] = ((uint32_t *)tmd)[1]; 827 827 xda[2] = ((uint32_t *)tmd)[0]; 828 xda[3] = ((uint32_t *)tmd)[3];829 828 xda[1] |= 0x80000000; 830 829 pcnetPhysWrite(pThis, addr, (void*)&xda[0], sizeof(xda)); … … 913 912 { 914 913 ((uint32_t*)rmd)[1] |= 0x80000000; 915 pcnetPhysWrite(pThis, addr, (void*)rmd, 1 6);914 pcnetPhysWrite(pThis, addr, (void*)rmd, 12); 916 915 ((uint32_t*)rmd)[1] &= ~0x80000000; 917 916 pcnetPhysWrite(pThis, addr+7, (uint8_t*)rmd + 7, 1); … … 919 918 else 920 919 { 921 uint32_t rda[ 4];920 uint32_t rda[3]; 922 921 rda[0] = ((uint32_t *)rmd)[2]; 923 922 rda[1] = ((uint32_t *)rmd)[1]; 924 923 rda[2] = ((uint32_t *)rmd)[0]; 925 rda[3] = ((uint32_t *)rmd)[3];926 924 rda[1] |= 0x80000000; 927 925 pcnetPhysWrite(pThis, addr, (void*)&rda[0], sizeof(rda));
Note:
See TracChangeset
for help on using the changeset viewer.