diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-07 15:34:35 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-07 15:34:35 +0000 |
commit | 533af00bc490d661c0485172ecc85661f5bfb8b2 (patch) | |
tree | 0958bc0190d3b4a65abceee125e75f4f0cb4dc78 /sys/arch/landisk | |
parent | 199a9dc702cd212e8bdb1f42566fb537bb2acc5b (diff) |
When allocating memory in bus_dmamem_alloc() with uvm_pglistalloc(), do not
try to be smart for the address range, uvm_pglistalloc() is smart enough
nowadays.
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r-- | sys/arch/landisk/landisk/bus_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/landisk/landisk/bus_dma.c b/sys/arch/landisk/landisk/bus_dma.c index e3b1af937ee..bc51919cd76 100644 --- a/sys/arch/landisk/landisk/bus_dma.c +++ b/sys/arch/landisk/landisk/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.4 2007/10/06 23:12:17 krw Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.5 2009/03/07 15:34:34 miod Exp $ */ /* $NetBSD: bus_dma.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /* @@ -548,7 +548,7 @@ _bus_dmamem_alloc(bus_dma_tag_t t, bus_size_t size, bus_size_t alignment, /* * Allocate the pages from the VM system. */ - error = uvm_pglistalloc(size, avail_start, avail_end - PAGE_SIZE, + error = uvm_pglistalloc(size, 0, -1, alignment, boundary, &mlist, nsegs, (flags & BUS_DMA_NOWAIT) == 0); if (error) return (error); |