summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2001-09-30 06:32:02 +0000
committeryamt <yamt@NetBSD.org>2001-09-30 06:32:02 +0000
commitcf2debbc86eee527fbb0ed51093045f1f045cfaf (patch)
tree330227d55beb7cb8562e9355c5b185bb28d8da57 /sys/dev
parentd3fb79099a198830264215a02b8079181e593982 (diff)
force 0x1000 align for memory base before
calling rbus_space_alloc(). resource management may be inconsistent without it.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pccbb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index 52bd6ffad5b..aefeeb01a95 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pccbb.c,v 1.67 2001/08/30 09:20:17 haya Exp $ */
+/* $NetBSD: pccbb.c,v 1.68 2001/09/30 06:32:02 yamt Exp $ */
/*
* Copyright (c) 1998, 1999 and 2000
@@ -2933,6 +2933,9 @@ pccbb_rbus_cb_space_alloc(ct, rb, addr, size, mask, align, flags, addrp, bshp)
if (align < 16) {
return 1;
}
+ if (align < 0x1000) {
+ align = 0x1000;
+ }
} else if (rb->rb_bt == sc->sc_iot) {
if (align < 4) {
return 1;