For the time being use B_32_BIT_MEMORY to allocate the auto-sense area.
Should rather use the device's DMA restrictions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37204 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91af25d302
commit
41ad209240
@ -218,8 +218,9 @@ scsi_create_autosense_request(scsi_device_info *device)
|
||||
total_size = (total_size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
|
||||
|
||||
// allocate buffer for space sense data and S/G list
|
||||
device->auto_sense_area = create_area("auto_sense",
|
||||
(void **)&buffer, B_ANY_KERNEL_ADDRESS, B_PAGE_SIZE, B_FULL_LOCK, 0);
|
||||
device->auto_sense_area = create_area("auto_sense", (void**)&buffer,
|
||||
B_ANY_KERNEL_ADDRESS, B_PAGE_SIZE, B_32_BIT_MEMORY, 0);
|
||||
// TODO: Use B_FULL_LOCK, if addresses >= 4 GB are supported!
|
||||
if (device->auto_sense_area < 0)
|
||||
goto err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user