Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/pci Fix a small bug to make both IO and MEM ...



details:   https://anonhg.NetBSD.org/src/rev/05af46a02dfe
branches:  trunk
changeset: 472707:05af46a02dfe
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Wed May 05 08:43:53 1999 +0000

description:
Fix a small bug to make both IO and MEM enable bits in csr are set.

diffstat:

 sys/arch/macppc/pci/bandit.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 0feee6a0bdfa -r 05af46a02dfe sys/arch/macppc/pci/bandit.c
--- a/sys/arch/macppc/pci/bandit.c      Wed May 05 08:09:34 1999 +0000
+++ b/sys/arch/macppc/pci/bandit.c      Wed May 05 08:43:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bandit.c,v 1.9 1999/05/05 04:37:19 thorpej Exp $       */
+/*     $NetBSD: bandit.c,v 1.10 1999/05/05 08:43:53 tsubai Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -309,8 +309,8 @@
        /*
         * Make sure the IO and MEM enable bits are set in the CSR.
         */
+       csr &= ~(PCI_COMMAND_IO_ENABLE|PCI_COMMAND_MEM_ENABLE);
        for (; sz > 0; sz -= 5 * sizeof(u_int32_t), rp += 5) {
-               csr &= ~(PCI_COMMAND_IO_ENABLE|PCI_COMMAND_MEM_ENABLE);
                switch (rp[0] & OFW_PCI_PHYS_HI_SPACEMASK) {
                case OFW_PCI_PHYS_HI_SPACE_IO:
                        csr |= PCI_COMMAND_IO_ENABLE;



Home | Main Index | Thread Index | Old Index