svn commit: r235933 - head/sys/powerpc/mpc85xx
Marcel Moolenaar
marcel at FreeBSD.org
Thu May 24 21:01:35 UTC 2012
Author: marcel
Date: Thu May 24 21:01:35 2012
New Revision: 235933
URL: http://svn.freebsd.org/changeset/base/235933
Log:
Either the I/O port range or the memory mapped I/O range may not be
defined in the FDT. The range will have a zero size in that case.
Modified:
head/sys/powerpc/mpc85xx/pci_fdt.c
Modified: head/sys/powerpc/mpc85xx/pci_fdt.c
==============================================================================
--- head/sys/powerpc/mpc85xx/pci_fdt.c Thu May 24 20:58:40 2012 (r235932)
+++ head/sys/powerpc/mpc85xx/pci_fdt.c Thu May 24 21:01:35 2012 (r235933)
@@ -816,8 +816,13 @@ fsl_pcib_set_range(struct fsl_pcib_softc
}
*allocp = pci_start + alloc;
- *vap = (uintptr_t)pmap_mapdev(start, size);
- fsl_pcib_outbound(sc, wnd, type, start, size, pci_start);
+ if (size > 0) {
+ *vap = (uintptr_t)pmap_mapdev(start, size);
+ fsl_pcib_outbound(sc, wnd, type, start, size, pci_start);
+ } else {
+ *vap = 0;
+ fsl_pcib_outbound(sc, wnd, -1, 0, 0, 0);
+ }
return (0);
}
More information about the svn-src-head
mailing list