- Timestamp:
- Oct 27, 2010 8:59:48 AM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ATAController.cpp
r32959 r33485 4758 4758 PPDMDEVINS pDevIns = pCtl->CTX_SUFF(pDevIns); 4759 4759 rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer); 4760 #ifndef IN_RING3 4761 /* This can fail in RC if the page table is not present for example. */ 4762 if (RT_FAILURE(rc)) 4763 { 4764 PDMCritSectLeave(&pCtl->lock); 4765 return VINF_IOM_HC_IOPORT_WRITE; 4766 } 4767 #else 4760 4768 Assert(rc == VINF_SUCCESS); 4769 #endif 4761 4770 4762 4771 if (cbTransfer) -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r33142 r33485 5543 5543 5544 5544 rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer); 5545 #ifndef IN_RING3 5546 /* This can fail in RC if the page table is not present for example. */ 5547 if (RT_FAILURE(rc)) 5548 { 5549 PDMCritSectLeave(&pCtl->lock); 5550 return VINF_IOM_HC_IOPORT_WRITE; 5551 } 5552 #else 5545 5553 Assert(rc == VINF_SUCCESS); 5554 #endif 5546 5555 5547 5556 if (cbTransfer)
Note:
See TracChangeset
for help on using the changeset viewer.