force 0x1000 align for memory base before

calling rbus_space_alloc().
resource management may be inconsistent without it.
This commit is contained in:
yamt 2001-09-30 06:32:02 +00:00
parent d3fb79099a
commit cf2debbc86
1 changed files with 4 additions and 1 deletions

View File

@ -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;