Confirmed I was a moron in one of axeld's TODOs, changed B_LOMEM to B_FULL_LOCK | B_CONTIGUOUS.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12349 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn
2005-04-12 18:00:29 +00:00
parent c9ceeec23c
commit ff50d32d9d
@@ -574,8 +574,8 @@ b57_read(void *cookie,off_t pos,void *data,size_t *numBytes)
if (pUmDevice->block) if (pUmDevice->block)
acquire_sem(pUmDevice->packet_release_sem); acquire_sem(pUmDevice->packet_release_sem);
else { else {
// ToDo: this looks severly broken /* Decrement the receive sem anyway, but don't block
// Decrement the receive sem anyway, but don't block this is a horrible hack, but it works. */
acquire_sem_etc(pUmDevice->packet_release_sem, 1, B_RELATIVE_TIMEOUT, 0); acquire_sem_etc(pUmDevice->packet_release_sem, 1, B_RELATIVE_TIMEOUT, 0);
} }
@@ -834,8 +834,7 @@ MM_AllocateSharedMemory(PLM_DEVICE_BLOCK pDevice, LM_UINT32 BlockSize,
dev = (struct be_b57_dev *)(pDevice); dev = (struct be_b57_dev *)(pDevice);
area_desc = dev->lockmem_list[dev->lockmem_list_num++] = create_area("broadcom_shared_mem", area_desc = dev->lockmem_list[dev->lockmem_list_num++] = create_area("broadcom_shared_mem",
&pvirt, B_ANY_KERNEL_ADDRESS, ROUND_UP_TO_PAGE(BlockSize), &pvirt, B_ANY_KERNEL_ADDRESS, ROUND_UP_TO_PAGE(BlockSize),
/*B_CONTIGUOUS | B_FULL_LOCK*/ B_LOMEM, 0); B_CONTIGUOUS | B_FULL_LOCK, 0);
// ToDo: B_LOMEM???
if (area_desc < B_OK) if (area_desc < B_OK)
return LM_STATUS_FAILURE; return LM_STATUS_FAILURE;