Changeset 93562 in vbox for trunk/src/VBox
- Timestamp:
- Feb 3, 2022 7:17:21 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevDP8390.cpp
r93560 r93562 1127 1127 if (pThis->core.rcr.AM && ETHER_IS_MULTICAST(hdr->DstMac.au8)) 1128 1128 { 1129 inti;1129 unsigned i; 1130 1130 const uint8_t *p = buf; 1131 1131 unsigned crc_frag, crc_rev; … … 3336 3336 * @callback_method_impl{FNIOMIOPORTIN} 3337 3337 */ 3338 PDMBOTHCBDECL(int) neIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3338 static DECLCALLBACK(VBOXSTRICTRC) 3339 neIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3339 3340 { 3340 3341 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3378 3379 * @callback_method_impl{FNIOMIOPORTIN} 3379 3380 */ 3380 PDMBOTHCBDECL(int) wdIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3381 static DECLCALLBACK(VBOXSTRICTRC) 3382 wdIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3381 3383 { 3382 3384 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3415 3417 * @callback_method_impl{FNIOMIOPORTIN} 3416 3418 */ 3417 PDMBOTHCBDECL(int) elIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3419 static DECLCALLBACK(VBOXSTRICTRC) 3420 elIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3418 3421 { 3419 3422 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3452 3455 * @callback_method_impl{FNIOMIOPORTIN} 3453 3456 */ 3454 PDMBOTHCBDECL(int) dp8390CoreIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3457 static DECLCALLBACK(VBOXSTRICTRC) 3458 dp8390CoreIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 3455 3459 { 3456 3460 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3492 3496 * @callback_method_impl{FNIOMIOPORTOUT} 3493 3497 */ 3494 PDMBOTHCBDECL(int) neIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3498 static DECLCALLBACK(VBOXSTRICTRC) 3499 neIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3495 3500 { 3496 3501 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3534 3539 * @callback_method_impl{FNIOMIOPORTOUT} 3535 3540 */ 3536 PDMBOTHCBDECL(int) wdIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3541 static DECLCALLBACK(VBOXSTRICTRC) 3542 wdIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3537 3543 { 3538 3544 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3569 3575 * @callback_method_impl{FNIOMIOPORTOUT} 3570 3576 */ 3571 PDMBOTHCBDECL(int) elIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3577 static DECLCALLBACK(VBOXSTRICTRC) 3578 elIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3572 3579 { 3573 3580 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3604 3611 * @callback_method_impl{FNIOMIOPORTOUT} 3605 3612 */ 3606 PDMBOTHCBDECL(int) dp8390CoreIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3613 static DECLCALLBACK(VBOXSTRICTRC) 3614 dp8390CoreIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 3607 3615 { 3608 3616 PDPNICSTATE pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE); … … 3837 3845 3838 3846 /* Clip transfer size so it falls within local RAM. */ 3839 if ((uDmaAddr - 0x2000 + cbToXfer) > sizeof(pThis->abLocalRAM))3847 if ((uDmaAddr - 0x2000 + cbToXfer) > (int)sizeof(pThis->abLocalRAM)) 3840 3848 { 3841 3849 /* Calculate how much to skip anything at the end. */ … … 3986 3994 pDevIns->fR0Enabled ? "RZ" : ""); 3987 3995 3988 /* In case of deadlocks, this should help identify the cause. */3989 PDM DevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_INTERNAL_ERROR);3996 int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_INTERNAL_ERROR); /* Take it here so we know why we're hanging... */ 3997 PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock); 3990 3998 3991 3999 pHlp->pfnPrintf(pHlp, "\nDP3890 NIC Core\n"); … … 4790 4798 AssertLogRelReturnVoid(iLUN == 0); 4791 4799 4792 PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY); 4800 int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY); 4801 PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock); 4793 4802 4794 4803 /* … … 4816 4825 AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN); 4817 4826 4818 PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY); 4827 int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY); 4828 PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock); 4819 4829 4820 4830 /*
Note:
See TracChangeset
for help on using the changeset viewer.