diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:09:19 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:09:19 +0000 |
commit | f49fd63a6a130ae464cdc7756e6f7d0d747c82c4 (patch) | |
tree | 218a911d9042b8afbfbb1c6643a2109a85dcf290 /sys/kern/subr_busdma_bufalloc.c | |
parent | 7ae99f80b6661760c5de3edd330b279f04b092a2 (diff) | |
download | src-f49fd63a6a130ae464cdc7756e6f7d0d747c82c4.tar.gz src-f49fd63a6a130ae464cdc7756e6f7d0d747c82c4.zip |
Diffstat (limited to 'sys/kern/subr_busdma_bufalloc.c')
-rw-r--r-- | sys/kern/subr_busdma_bufalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_busdma_bufalloc.c b/sys/kern/subr_busdma_bufalloc.c index f201cde51519..ebf83d61ca18 100644 --- a/sys/kern/subr_busdma_bufalloc.c +++ b/sys/kern/subr_busdma_bufalloc.c @@ -158,7 +158,7 @@ busdma_bufalloc_alloc_uncacheable(uma_zone_t zone, vm_size_t size, int domain, /* Inform UMA that this allocator uses kernel_arena/object. */ *pflag = UMA_SLAB_KERNEL; - return ((void *)kmem_alloc_attr_domainset(DOMAINSET_FIXED(domain), size, + return (kmem_alloc_attr_domainset(DOMAINSET_FIXED(domain), size, wait, 0, BUS_SPACE_MAXADDR, VM_MEMATTR_UNCACHEABLE)); #else panic("VM_MEMATTR_UNCACHEABLE unavailable"); @@ -169,5 +169,5 @@ void busdma_bufalloc_free_uncacheable(void *item, vm_size_t size, uint8_t pflag) { - kmem_free((vm_offset_t)item, size); + kmem_free(item, size); } |