diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-07 18:35:58 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-07 18:35:58 +0000 |
commit | daca45b2e2fe51770fdf141620b1a04d8143ba13 (patch) | |
tree | 26ed8b6290c785830777c96472759baede9fda97 /sys/arch/alpha | |
parent | 1fb6e84fb87be265e927add726d41e6fe36478d0 (diff) |
this removes the functionality of adding allocated
pages into the queue already containing allocated pages.
breaks i386:setup_buffers() because of this.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/cpu.c | 3 | ||||
-rw-r--r-- | sys/arch/alpha/dev/bus_dma.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/cpu.c b/sys/arch/alpha/alpha/cpu.c index f01cf28666f..078bf96aa59 100644 --- a/sys/arch/alpha/alpha/cpu.c +++ b/sys/arch/alpha/alpha/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.13 2002/10/06 22:06:15 art Exp $ */ +/* $OpenBSD: cpu.c,v 1.14 2002/10/07 18:35:56 mickey Exp $ */ /* $NetBSD: cpu.c,v 1.44 2000/05/23 05:12:53 thorpej Exp $ */ /*- @@ -328,6 +328,7 @@ recognized: /* * Allocate UPAGES contiguous pages for the idle PCB and stack. */ + TAILQ_INIT(&mlist); error = uvm_pglistalloc(USPACE, avail_start, avail_end, 0, 0, &mlist, 1, 1); if (error != 0) { diff --git a/sys/arch/alpha/dev/bus_dma.c b/sys/arch/alpha/dev/bus_dma.c index 1d7279e2083..df795dc3387 100644 --- a/sys/arch/alpha/dev/bus_dma.c +++ b/sys/arch/alpha/dev/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.10 2002/10/06 22:06:15 art Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.11 2002/10/07 18:35:56 mickey Exp $ */ /* $NetBSD: bus_dma.c,v 1.40 2000/07/17 04:47:56 thorpej Exp $ */ /*- @@ -489,6 +489,7 @@ _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs, /* * Allocate pages from the VM system. */ + TAILQ_INIT(&mlist); error = uvm_pglistalloc(size, low, high, alignment, boundary, &mlist, nsegs, (flags & BUS_DMA_NOWAIT) == 0); if (error) |