summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
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/hppa
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/hppa')
-rw-r--r--sys/arch/hppa/hppa/mainbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c
index 3718475056c..3bc0c753600 100644
--- a/sys/arch/hppa/hppa/mainbus.c
+++ b/sys/arch/hppa/hppa/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.70 2009/02/01 14:53:02 miod Exp $ */
+/* $OpenBSD: mainbus.c,v 1.71 2009/03/07 15:34:34 miod Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -942,7 +942,7 @@ mbus_dmamem_alloc(void *v, bus_size_t size, bus_size_t alignment,
size = round_page(size);
TAILQ_INIT(&pglist);
- if (uvm_pglistalloc(size, 0, avail_end, alignment, boundary,
+ if (uvm_pglistalloc(size, 0, -1, alignment, boundary,
&pglist, 1, flags & BUS_DMA_NOWAIT))
return (ENOMEM);