diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c index ba0deef22ca1..8d18be65c7a8 100644 --- a/sys/arch/i386/pci/pchb.c +++ b/sys/arch/i386/pci/pchb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pchb.c,v 1.31 2002/01/14 01:45:54 augustss Exp $ */ +/* $NetBSD: pchb.c,v 1.32 2002/03/16 22:17:27 he Exp $ */ /*- * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.31 2002/01/14 01:45:54 augustss Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.32 2002/03/16 22:17:27 he Exp $"); #include #include @@ -226,6 +226,11 @@ pchbattach(struct device *parent, struct device *self, void *aux) * (It would be easier to attach all the buses * at the MIOC, but less aesthetical imho.) */ + if ((attachflags & + (PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED)) == + PCI_FLAGS_MEM_ENABLED) + attachflags |= PCI_FLAGS_IO_ENABLED; + pbnum = 0; switch (pa->pa_device) { case 18: /* PXB 0 bus A - primary bus */