- Timestamp:
- Oct 27, 2010 9:04:30 AM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ATAController.cpp
r33485 r33486 4706 4706 PPDMDEVINS pDevIns = pCtl->CTX_SUFF(pDevIns); 4707 4707 rc = PGMPhysSimpleDirtyWriteGCPtr(PDMDevHlpGetVMCPU(pDevIns), GCDst, s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, cbTransfer); 4708 #ifndef IN_RING3 4709 /* Paranoia. */ 4710 if (RT_FAILURE(rc)) 4711 { 4712 PDMCritSectLeave(&pCtl->lock); 4713 AssertFailed(); 4714 return VINF_IOM_HC_IOPORT_READ; 4715 } 4716 #else 4708 4717 Assert(rc == VINF_SUCCESS); 4718 #endif 4709 4719 4710 4720 if (cbTransfer) … … 4759 4769 rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer); 4760 4770 #ifndef IN_RING3 4761 /* This can fail in RC if the page table is not present for example. */4771 /* Paranoia. */ 4762 4772 if (RT_FAILURE(rc)) 4763 4773 { 4764 4774 PDMCritSectLeave(&pCtl->lock); 4775 AssertFailed(); 4765 4776 return VINF_IOM_HC_IOPORT_WRITE; 4766 4777 } -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r33485 r33486 5485 5485 5486 5486 rc = PGMPhysSimpleDirtyWriteGCPtr(PDMDevHlpGetVMCPU(pDevIns), GCDst, s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, cbTransfer); 5487 #ifndef IN_RING3 5488 /* Paranoia. */ 5489 if (RT_FAILURE(rc)) 5490 { 5491 PDMCritSectLeave(&pCtl->lock); 5492 AssertFailed(); 5493 return VINF_IOM_HC_IOPORT_READ; 5494 } 5495 #else 5487 5496 Assert(rc == VINF_SUCCESS); 5497 #endif 5488 5498 5489 5499 if (cbTransfer) … … 5544 5554 rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer); 5545 5555 #ifndef IN_RING3 5546 /* This can fail in RC if the page table is not present for example. */5556 /* Paranoia. */ 5547 5557 if (RT_FAILURE(rc)) 5548 5558 { 5549 5559 PDMCritSectLeave(&pCtl->lock); 5560 AssertFailed(); 5550 5561 return VINF_IOM_HC_IOPORT_WRITE; 5551 5562 }
Note:
See TracChangeset
for help on using the changeset viewer.