Author: marius
Date: Tue Dec 22 21:53:19 2009
New Revision: 200880
URL: http://svn.freebsd.org/changeset/base/200880
Log:
- Correct an off-by-one error when calculating the end of a child
range.
- Spell the PCI TLA in uppercase.
Modified:
head/sys/sparc64/isa/ofw_isa.c
Modified: head/sys/sparc64/isa/ofw_isa.c
==============================================================================
--- head/sys/sparc64/isa/ofw_isa.c Tue Dec 22 21:49:53 2009
(r200879)
+++ head/sys/sparc64/isa/ofw_isa.c Tue Dec 22 21:53:19 2009
(r200880)
@@ -79,11 +79,11 @@ ofw_isa_range_map(struct isa_ranges *ran
for (i = 0; i < nrange; i++) {
r = &range[i];
cstart = ISA_RANGE_CHILD(r);
- cend = cstart + r->size;
+ cend = cstart + r->size - 1;
if (*start < cstart || *start > cend)
continue;
if (*end < cstart || *end > cend) {
- panic("ofw_isa_map_iorange: iorange crosses pci "
+ panic("ofw_isa_map_iorange: iorange crosses PCI "
"ranges (%#lx not in %#lx - %#lx)", *end, cstart,
cend);
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"