Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci force 0x1000 align for memory base before



details:   https://anonhg.NetBSD.org/src/rev/0f8c3f722eaf
branches:  trunk
changeset: 515634:0f8c3f722eaf
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Sep 30 06:32:02 2001 +0000

description:
force 0x1000 align for memory base before
calling rbus_space_alloc().
resource management may be inconsistent without it.

diffstat:

 sys/dev/pci/pccbb.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 0abc468dba15 -r 0f8c3f722eaf sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c       Sun Sep 30 05:31:20 2001 +0000
+++ b/sys/dev/pci/pccbb.c       Sun Sep 30 06:32:02 2001 +0000
@@ -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 @@
                if (align < 16) {
                        return 1;
                }
+               if (align < 0x1000) {
+                       align = 0x1000;
+               }
        } else if (rb->rb_bt == sc->sc_iot) {
                if (align < 4) {
                        return 1;



Home | Main Index | Thread Index | Old Index