summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-07 01:25:08 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-07 01:25:08 +0000
commit8a08007424b0327edfdd5b92ff82e38881c3dd90 (patch)
treea39cc4bfe794055902cd928898415e2eb2cfce99 /sys/dev/isa
parentb0d28a8937bd5487345e2293ddb33963f01f3e88 (diff)
Add initialization of pglist, now attaches fine, but
bugs exist still in bounce buffering
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/aha.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c
index 2566e5f65ee..2cdfb097893 100644
--- a/sys/dev/isa/aha.c
+++ b/sys/dev/isa/aha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha.c,v 1.44 2002/03/14 03:16:05 millert Exp $ */
+/* $OpenBSD: aha.c,v 1.45 2002/06/07 01:25:07 niklas Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#undef AHADIAG
@@ -1093,6 +1093,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,
@@ -1100,7 +1101,8 @@ aha_init(sc)
panic("aha_init: could not allocate mailbox");
wmbx = (struct aha_mbx *)va;
- for (pg = TAILQ_FIRST(&pglist); pg != NULL;pg = TAILQ_NEXT(pg, pageq)) {
+ for (pg = TAILQ_FIRST(&pglist); pg != NULL;
+ pg = TAILQ_NEXT(pg, pageq)) {
pmap_kenter_pa(va, VM_PAGE_TO_PHYS(pg),
VM_PROT_READ|VM_PROT_WRITE);
va += PAGE_SIZE;