Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail and
authormpi <mpi@openbsd.org>
Fri, 11 Jul 2014 09:36:25 +0000 (09:36 +0000)
committermpi <mpi@openbsd.org>
Fri, 11 Jul 2014 09:36:25 +0000 (09:36 +0000)
commitc1e6d80a356903891c9f6b053cef3cbb5a1bc7db
tree207a4cca8f3a28ee68a697e0e16db1a7aa927b74
parentfbc627cc42304bdfa3eac86e9f0470915e7b6123
Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail and
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is
specified.

idea and inputs from kettenis@, ok miod@
15 files changed:
sys/arch/alpha/dev/bus_dma.c
sys/arch/amd64/amd64/bus_dma.c
sys/arch/arm/arm/bus_dma.c
sys/arch/aviion/aviion/bus_dma.c
sys/arch/i386/i386/bus_dma.c
sys/arch/landisk/landisk/bus_dma.c
sys/arch/loongson/loongson/bus_dma.c
sys/arch/macppc/macppc/dma.c
sys/arch/octeon/octeon/bus_dma.c
sys/arch/sgi/sgi/bus_dma.c
sys/arch/socppc/socppc/dma.c
sys/arch/sparc/sparc/iommu.c
sys/arch/sparc/sparc/machdep.c
sys/arch/sparc64/sparc64/machdep.c
sys/arch/vax/vax/bus_dma.c