mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 22:45:23 +08:00
Fix mbuf_jumbo_alloc()
This commit is contained in:
@@ -425,9 +425,9 @@ static void *
|
|||||||
mbuf_jumbo_alloc(uma_zone_t zone, int bytes, uint8_t *flags, int wait)
|
mbuf_jumbo_alloc(uma_zone_t zone, int bytes, uint8_t *flags, int wait)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifndef __rtems__
|
|
||||||
/* Inform UMA that this allocator uses kernel_map/object. */
|
/* Inform UMA that this allocator uses kernel_map/object. */
|
||||||
*flags = UMA_SLAB_KERNEL;
|
*flags = UMA_SLAB_KERNEL;
|
||||||
|
#ifndef __rtems__
|
||||||
return ((void *)kmem_alloc_contig(kernel_map, bytes, wait,
|
return ((void *)kmem_alloc_contig(kernel_map, bytes, wait,
|
||||||
(vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0, VM_MEMATTR_DEFAULT));
|
(vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0, VM_MEMATTR_DEFAULT));
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
|
Reference in New Issue
Block a user