Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt Support configuring ranges where only prefe...



details:   https://anonhg.NetBSD.org/src/rev/7a123b15623e
branches:  trunk
changeset: 842018:7a123b15623e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 12 22:47:03 2019 +0000

description:
Support configuring ranges where only prefetchable memory is defined

diffstat:

 sys/arch/arm/fdt/pcihost_fdt.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r d245b3c435f3 -r 7a123b15623e sys/arch/arm/fdt/pcihost_fdt.c
--- a/sys/arch/arm/fdt/pcihost_fdt.c    Wed Jun 12 22:44:53 2019 +0000
+++ b/sys/arch/arm/fdt/pcihost_fdt.c    Wed Jun 12 22:47:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcihost_fdt.c,v 1.9 2019/06/12 10:13:44 jmcneill Exp $ */
+/* $NetBSD: pcihost_fdt.c,v 1.10 2019/06/12 22:47:03 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcihost_fdt.c,v 1.9 2019/06/12 10:13:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcihost_fdt.c,v 1.10 2019/06/12 22:47:03 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -347,6 +347,11 @@
                }
        }
 
+       if (memext == NULL && pmemext != NULL) {
+               memext = pmemext;
+               pmemext = NULL;
+       }
+
        error = pci_configure_bus(&sc->sc_pc, ioext, memext, pmemext, sc->sc_bus_min, PCIHOST_CACHELINE_SIZE);
 
        if (ioext)



Home | Main Index | Thread Index | Old Index