Adjust ata bus manager to compensate for r27979.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28049 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -58,7 +58,7 @@ copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength,
|
|||||||
bytes = min(bytes, sgList->size);
|
bytes = min(bytes, sgList->size);
|
||||||
|
|
||||||
if (vm_get_physical_page((addr_t)sgList->address, &virtualAddress,
|
if (vm_get_physical_page((addr_t)sgList->address, &virtualAddress,
|
||||||
PHYSICAL_PAGE_CAN_WAIT) != B_OK)
|
0) != B_OK)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SHOW_FLOW(4, "buffer=%p, virt_addr=%p, bytes=%d, to_buffer=%d",
|
SHOW_FLOW(4, "buffer=%p, virt_addr=%p, bytes=%d, to_buffer=%d",
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ transfer_PIO_physcont(ide_device_info *device, addr_t physicalAddress,
|
|||||||
physicalAddress, length);
|
physicalAddress, length);
|
||||||
|
|
||||||
if (vm_get_physical_page(physicalAddress, &virtualAddress,
|
if (vm_get_physical_page(physicalAddress, &virtualAddress,
|
||||||
PHYSICAL_PAGE_CAN_WAIT) != B_OK) {
|
0) != B_OK) {
|
||||||
// ouch: this should never ever happen
|
// ouch: this should never ever happen
|
||||||
//xxx fix this set_sense(device, SCSIS_KEY_HARDWARE_ERROR, SCSIS_ASC_INTERNAL_FAILURE);
|
//xxx fix this set_sense(device, SCSIS_KEY_HARDWARE_ERROR, SCSIS_ASC_INTERNAL_FAILURE);
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user