- Timestamp:
- Aug 2, 2016 10:34:46 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r62885 r62889 1290 1290 SSMR3PutS32(pSSM, pThis->acpi_irq); 1291 1291 1292 SSMR3PutU32(pSSM, ~0);/* separator */1292 SSMR3PutU32(pSSM, UINT32_MAX); /* separator */ 1293 1293 1294 1294 /* -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r62885 r62889 1147 1147 SSMR3PutU32(pSSM, pThis->uaPciApicIrqLevels[i]); 1148 1148 1149 SSMR3PutU32(pSSM, ~0);/* separator */1149 SSMR3PutU32(pSSM, UINT32_MAX); /* separator */ 1150 1150 1151 1151 return ich9pciR3CommonSaveExec(&pThis->aPciBus, pSSM); -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r62885 r62889 1870 1870 chars */ 1871 1871 if (pThis->cursor_offset < CH_ATTR_SIZE) 1872 pThis->last_ch_attr[pThis->cursor_offset] = ~0;1872 pThis->last_ch_attr[pThis->cursor_offset] = UINT32_MAX; 1873 1873 if (cursor_offset < CH_ATTR_SIZE) 1874 pThis->last_ch_attr[cursor_offset] = ~0;1874 pThis->last_ch_attr[cursor_offset] = UINT32_MAX; 1875 1875 pThis->cursor_offset = cursor_offset; 1876 1876 pThis->cursor_start = pThis->cr[0xa]; … … 4595 4595 return VERR_PDM_NO_SUCH_LUN; 4596 4596 } 4597 4598 return VERR_PDM_LUN_NOT_FOUND;4599 4597 } 4600 4598 -
trunk/src/VBox/Devices/Input/DevPS2.cpp
r62573 r62889 518 518 519 519 /* terminator */ 520 SSMR3PutU32(pSSM, ~0);520 SSMR3PutU32(pSSM, UINT32_MAX); 521 521 } 522 522 -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r62632 r62889 586 586 int64_t expire_time; 587 587 int irq_level; 588 PTMTIMER pTimer = pChan->CTX_SUFF(pPit)->channels[0].CTX_SUFF(pTimer); 589 Assert(TMTimerIsLockOwner(pTimer)); 588 Assert(TMTimerIsLockOwner(pChan->CTX_SUFF(pPit)->channels[0].CTX_SUFF(pTimer))); 590 589 591 590 if (!pChan->CTX_SUFF(pTimer)) … … 822 821 */ 823 822 PPITCHANNEL pChan = &pThis->channels[Port]; 824 uint8_t const write_state = pChan->write_state;825 823 DEVPIT_LOCK_BOTH_RETURN(pThis, VINF_IOM_R3_IOPORT_WRITE); 826 824 switch (pChan->write_state) … … 900 898 PDMBOTHCBDECL(int) pitIOPortSpeakerWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 901 899 { 902 NOREF(pvUser);900 RT_NOREF2(pvUser, Port); 903 901 if (cb == 1) 904 902 { … … 995 993 static DECLCALLBACK(int) pitLiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass) 996 994 { 995 RT_NOREF1(uPass); 997 996 PPITSTATE pThis = PDMINS_2_DATA(pDevIns, PPITSTATE); 998 997 SSMR3PutIOPort(pSSM, pThis->IOPortBaseCfg); … … 1164 1163 static DECLCALLBACK(void) pitInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 1165 1164 { 1165 RT_NOREF1(pszArgs); 1166 1166 PPITSTATE pThis = PDMINS_2_DATA(pDevIns, PPITSTATE); 1167 1167 unsigned i; … … 1236 1236 static DECLCALLBACK(void) pitRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 1237 1237 { 1238 RT_NOREF1(offDelta); 1238 1239 PPITSTATE pThis = PDMINS_2_DATA(pDevIns, PPITSTATE); 1239 1240 LogFlow(("pitRelocate: \n")); -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r62632 r62889 2509 2509 static uint32_t atapiR3GetConfigurationFillFeatureListProfiles(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2510 2510 { 2511 RT_NOREF1(s); 2511 2512 if (cbBuf < 3*4) 2512 2513 return 0; … … 2527 2528 static uint32_t atapiR3GetConfigurationFillFeatureCore(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2528 2529 { 2530 RT_NOREF1(s); 2529 2531 if (cbBuf < 12) 2530 2532 return 0; … … 2542 2544 static uint32_t atapiR3GetConfigurationFillFeatureMorphing(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2543 2545 { 2546 RT_NOREF1(s); 2544 2547 if (cbBuf < 8) 2545 2548 return 0; … … 2556 2559 static uint32_t atapiR3GetConfigurationFillFeatureRemovableMedium(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2557 2560 { 2561 RT_NOREF1(s); 2558 2562 if (cbBuf < 8) 2559 2563 return 0; … … 2571 2575 static uint32_t atapiR3GetConfigurationFillFeatureRandomReadable (ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2572 2576 { 2577 RT_NOREF1(s); 2573 2578 if (cbBuf < 12) 2574 2579 return 0; … … 2587 2592 static uint32_t atapiR3GetConfigurationFillFeatureCDRead(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2588 2593 { 2594 RT_NOREF1(s); 2589 2595 if (cbBuf < 8) 2590 2596 return 0; … … 2601 2607 static uint32_t atapiR3GetConfigurationFillFeaturePowerManagement(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2602 2608 { 2609 RT_NOREF1(s); 2603 2610 if (cbBuf < 4) 2604 2611 return 0; … … 2613 2620 static uint32_t atapiR3GetConfigurationFillFeatureTimeout(ATADevState *s, uint8_t *pbBuf, size_t cbBuf) 2614 2621 { 2622 RT_NOREF1(s); 2615 2623 if (cbBuf < 8) 2616 2624 return 0; … … 5268 5276 cbBuffer = pCtl->cbRedoDMABuffer; 5269 5277 fLastDesc = pCtl->fRedoDMALastDesc; 5278 DMADesc.pBuffer = DMADesc.cbBuffer = 0; /* Shut up MSC. */ 5270 5279 } 5271 5280 else … … 5432 5441 * which is what's there now. 5433 5442 */ 5434 static DECLCALLBACK(int) ataR3AsyncIOThread(RTTHREAD ThreadSelf, void *pvUser) 5435 { 5443 static DECLCALLBACK(int) ataR3AsyncIOThread(RTTHREAD hThreadSelf, void *pvUser) 5444 { 5445 RT_NOREF1(hThreadSelf); 5436 5446 const ATARequest *pReq; 5437 5447 uint64_t u64TS = 0; /* shut up gcc */ … … 6110 6120 RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType) 6111 6121 { 6122 RT_NOREF1(cb); 6112 6123 PCIATAState *pThis = PCIDEV_2_PCIATASTATE(pPciDev); 6113 6124 int rc = VINF_SUCCESS; … … 6678 6689 static DECLCALLBACK(int) ataR3SaveLoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 6679 6690 { 6680 PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *); 6691 RT_NOREF1(pSSM); 6692 PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *); 6681 6693 6682 6694 /* sanity - the suspend notification will wait on the async stuff. */ … … 6693 6705 static DECLCALLBACK(int) ataR3LiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass) 6694 6706 { 6695 PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *); 6707 RT_NOREF1(uPass); 6708 PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *); 6696 6709 6697 6710 SSMR3PutU8(pSSM, pThis->u8Type); … … 6789 6802 } 6790 6803 6791 return SSMR3PutU32(pSSM, ~0); /* sanity/terminator */6804 return SSMR3PutU32(pSSM, UINT32_MAX); /* sanity/terminator */ 6792 6805 } 6793 6806
Note:
See TracChangeset
for help on using the changeset viewer.