From cf2debbc86eee527fbb0ed51093045f1f045cfaf Mon Sep 17 00:00:00 2001 From: yamt Date: Sun, 30 Sep 2001 06:32:02 +0000 Subject: force 0x1000 align for memory base before calling rbus_space_alloc(). resource management may be inconsistent without it. --- sys/dev/pci/pccbb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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; -- cgit