1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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 Lepore 2014-07-26 18:14:16 +00:00
parent 0346250941
commit 9ec89d355f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269135

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++;