On Wed, 17 Jun 2020 at 15:56, Andrew Turner <[email protected]> wrote: > > Author: andrew > Date: Wed Jun 17 19:56:17 2020 > New Revision: 362285 > URL: https://svnweb.freebsd.org/changeset/base/362285 > > Log: > Clean up the pci host generic driver ... > > + /* Translate the address from a PCI address to a physical address */ > + switch (type) { > + case SYS_RES_IOPORT: > + case SYS_RES_MEMORY: > + found = false; > + for (i = 0; i < MAX_RANGES_TUPLES; i++) { > + pci_base = sc->ranges[i].pci_base; > + phys_base = sc->ranges[i].phys_base; > + size = sc->ranges[i].size; > + > + if (start < pci_base || start >= pci_base + size) > + continue;
Should the second condition be end instead? markj had this comment on the old version in review D20884. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
