Remove completely bogus alignment check -- it's the physical address that

needs to be aligned, not the virtual, and it doesn't seem worth the cost
of a vtophys() call just to see if kmem_alloc_contig() works properly.
This commit is contained in:
ian 2014-07-26 18:14:16 +00:00
parent 2b42c1ddc8
commit a893ebb4b0

View File

@ -721,8 +721,6 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
free(*mapp, M_DEVBUF);
*mapp = NULL;
return (ENOMEM);
} else if ((uintptr_t)*vaddr & (dmat->alignment - 1)) {
printf("bus_dmamem_alloc failed to align memory properly.\n");
}
dmat->map_count++;