summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/alpha/alpha/cpu.c3
-rw-r--r--sys/arch/alpha/dev/bus_dma.c3
-rw-r--r--sys/arch/hppa/hppa/mainbus.c3
-rw-r--r--sys/arch/i386/i386/machdep.c3
-rw-r--r--sys/arch/macppc/macppc/dma.c3
-rw-r--r--sys/arch/mvmeppc/mvmeppc/bus_dma.c3
-rw-r--r--sys/arch/sparc/sparc/iommu.c3
-rw-r--r--sys/arch/sparc64/dev/iommu.c3
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c3
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c3
-rw-r--r--sys/arch/vax/vax/bus_dma.c3
-rw-r--r--sys/dev/isa/aha.c3
-rw-r--r--sys/uvm/uvm_pglist.c4
13 files changed, 25 insertions, 15 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)
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c
index 1a38f224ed6..f0737c0a8ac 100644
--- a/sys/arch/hppa/hppa/mainbus.c
+++ b/sys/arch/hppa/hppa/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.34 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: mainbus.c,v 1.35 2002/10/07 18:35:56 mickey Exp $ */
/*
* Copyright (c) 1998-2001 Michael Shalayeff
@@ -726,6 +726,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, VM_MIN_KERNEL_ADDRESS, VM_MAX_KERNEL_ADDRESS,
alignment, 0, &pglist, 1, FALSE))
return ENOMEM;
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 453fb054591..33300474984 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.215 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.216 2002/10/07 18:35:56 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -3356,6 +3356,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)
diff --git a/sys/arch/macppc/macppc/dma.c b/sys/arch/macppc/macppc/dma.c
index 55cc176c6b3..0c6fac8b463 100644
--- a/sys/arch/macppc/macppc/dma.c
+++ b/sys/arch/macppc/macppc/dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma.c,v 1.16 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: dma.c,v 1.17 2002/10/07 18:35:56 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -600,6 +600,7 @@ _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)
diff --git a/sys/arch/mvmeppc/mvmeppc/bus_dma.c b/sys/arch/mvmeppc/mvmeppc/bus_dma.c
index 6cbdd4d1fbc..8c23bd3e80e 100644
--- a/sys/arch/mvmeppc/mvmeppc/bus_dma.c
+++ b/sys/arch/mvmeppc/mvmeppc/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.2 2001/06/10 02:31:25 briggs Exp $ */
/*-
@@ -610,6 +610,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)
diff --git a/sys/arch/sparc/sparc/iommu.c b/sys/arch/sparc/sparc/iommu.c
index 88072686f76..8121bc74388 100644
--- a/sys/arch/sparc/sparc/iommu.c
+++ b/sys/arch/sparc/sparc/iommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommu.c,v 1.17 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: iommu.c,v 1.18 2002/10/07 18:35:56 mickey Exp $ */
/* $NetBSD: iommu.c,v 1.13 1997/07/29 09:42:04 fair Exp $ */
/*
@@ -182,6 +182,7 @@ iommu_attach(parent, self, aux)
* The table must be aligned on a (-DVMA4M_BASE/NBPG) boundary
* (i.e. 64K for 64M of dvma space).
*/
+ TAILQ_INIT(&mlist);
#define DVMA_PTESIZE ((0 - DVMA4M_BASE) / 1024)
if (uvm_pglistalloc(DVMA_PTESIZE, 0, 0xffffffff, DVMA_PTESIZE,
0, &mlist, 1, 0) ||
diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c
index 2f96e45464f..2c318127894 100644
--- a/sys/arch/sparc64/dev/iommu.c
+++ b/sys/arch/sparc64/dev/iommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommu.c,v 1.21 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: iommu.c,v 1.22 2002/10/07 18:35:56 mickey Exp $ */
/* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */
/*
@@ -138,6 +138,7 @@ iommu_init(name, is, tsbsize, iovabase)
*/
size = NBPG<<(is->is_tsbsize);
+ TAILQ_INIT(&mlist);
if (uvm_pglistalloc((psize_t)size, (paddr_t)0, (paddr_t)-1,
(paddr_t)NBPG, (paddr_t)0, &mlist, 1, 0) != 0)
panic("iommu_init: no memory");
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 4666e7849c9..a35fe12e347 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.49 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.50 2002/10/07 18:35:57 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -1542,6 +1542,7 @@ _bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
/*
* 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)
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index 45c0807d628..31178e99846 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.19 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.20 2002/10/07 18:35:57 mickey Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
/*
@@ -1489,6 +1489,7 @@ pmap_init()
panic("pmap_init: CLSIZE!=1");
size = sizeof(struct pv_entry) * physmem;
+ TAILQ_INIT(&mlist);
if (uvm_pglistalloc((psize_t)size, (paddr_t)0, (paddr_t)-1,
(paddr_t)NBPG, (paddr_t)0, &mlist, 1, 0) != 0)
panic("cpu_start: no memory");
diff --git a/sys/arch/vax/vax/bus_dma.c b/sys/arch/vax/vax/bus_dma.c
index fda4a8ec60b..186a2d23dbb 100644
--- a/sys/arch/vax/vax/bus_dma.c
+++ b/sys/arch/vax/vax/bus_dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus_dma.c,v 1.11 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.12 2002/10/07 18:35:57 mickey Exp $ */
/* $NetBSD: bus_dma.c,v 1.5 1999/11/13 00:32:20 thorpej Exp $ */
/*-
@@ -702,6 +702,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)
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c
index a2c092f0a24..662cede8f8f 100644
--- a/sys/dev/isa/aha.c
+++ b/sys/dev/isa/aha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha.c,v 1.48 2002/10/06 22:06:15 art Exp $ */
+/* $OpenBSD: aha.c,v 1.49 2002/10/07 18:35:57 mickey Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#undef AHADIAG
@@ -1118,6 +1118,7 @@ aha_init(sc)
* XXX - this vm juggling is so wrong. use bus_dma instead!
*/
size = round_page(sizeof(struct aha_mbx));
+ TAILQ_INIT(&pglist);
if (uvm_pglistalloc(size, 0, 0xffffff, PAGE_SIZE, 0, &pglist, 1, 0) ||
uvm_map(kernel_map, &va, size, NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE,
diff --git a/sys/uvm/uvm_pglist.c b/sys/uvm/uvm_pglist.c
index 3f9cf3b4e28..82eb440a133 100644
--- a/sys/uvm/uvm_pglist.c
+++ b/sys/uvm/uvm_pglist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pglist.c,v 1.13 2002/10/06 22:04:41 art Exp $ */
+/* $OpenBSD: uvm_pglist.c,v 1.14 2002/10/07 18:35:52 mickey Exp $ */
/* $NetBSD: uvm_pglist.c,v 1.13 2001/02/18 21:19:08 chs Exp $ */
/*-
@@ -120,8 +120,6 @@ uvm_pglistalloc(size, low, high, alignment, boundary, rlist, nsegs, waitok)
/* Default to "lose". */
error = ENOMEM;
- TAILQ_INIT(rlist);
-
/*
* Block all memory allocation and lock the free list.
*/