summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-03-07 15:34:35 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-03-07 15:34:35 +0000
commit533af00bc490d661c0485172ecc85661f5bfb8b2 (patch)
tree0958bc0190d3b4a65abceee125e75f4f0cb4dc78 /sys/arch/sgi
parent199a9dc702cd212e8bdb1f42566fb537bb2acc5b (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/sgi')
-rw-r--r--sys/arch/sgi/sgi/bus_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/bus_dma.c b/sys/arch/sgi/sgi/bus_dma.c
index aa6bc431c30..9842544c9eb 100644
--- a/sys/arch/sgi/sgi/bus_dma.c
+++ b/sys/arch/sgi/sgi/bus_dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus_dma.c,v 1.6 2008/07/16 15:49:22 miod Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.7 2009/03/07 15:34:34 miod Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -438,7 +438,7 @@ _dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
int flags;
{
return (_dmamem_alloc_range(t, size, alignment, boundary,
- segs, nsegs, rsegs, flags, 0, -1));
+ segs, nsegs, rsegs, flags, (paddr_t)0, (paddr_t)-1));
}
/*