freebsd_network: Update comment in kernel_malloc.
bus_dmamem_alloc doesn't need this behavior anymore.
This commit is contained in:
@@ -22,8 +22,8 @@ _kernel_malloc(size_t size, int flags)
|
|||||||
{
|
{
|
||||||
// According to the FreeBSD kernel malloc man page the allocator is expected
|
// According to the FreeBSD kernel malloc man page the allocator is expected
|
||||||
// to return power of two aligned addresses for allocations up to one page
|
// to return power of two aligned addresses for allocations up to one page
|
||||||
// size. While it also states that this shouldn't be relied upon, at least
|
// size. While it also states that this shouldn't be relied upon, some drivers
|
||||||
// bus_dmamem_alloc expects it and drivers may depend on it as well.
|
// may depend on it.
|
||||||
void *ptr
|
void *ptr
|
||||||
= memalign_etc(size >= PAGESIZE ? PAGESIZE : next_power_of_2(size), size,
|
= memalign_etc(size >= PAGESIZE ? PAGESIZE : next_power_of_2(size), size,
|
||||||
(flags & M_NOWAIT) ? HEAP_DONT_WAIT_FOR_MEMORY : 0);
|
(flags & M_NOWAIT) ? HEAP_DONT_WAIT_FOR_MEMORY : 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user