summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-12-22 21:53:19 +0000
committermarius <marius@FreeBSD.org>2009-12-22 21:53:19 +0000
commit402498e0554df81125e14e514fe888f8ad1b6128 (patch)
treef2fa428aafdc58f70f8043464da53f9c231cd409
parentb02fe6b6de9a79f7ce83a708f9c8575622b8d853 (diff)
downloadFreeBSD-src-402498e0554df81125e14e514fe888f8ad1b6128.zip
FreeBSD-src-402498e0554df81125e14e514fe888f8ad1b6128.tar.gz
- Correct an off-by-one error when calculating the end of a child
range. - Spell the PCI TLA in uppercase.
-rw-r--r--sys/sparc64/isa/ofw_isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/isa/ofw_isa.c b/sys/sparc64/isa/ofw_isa.c
index de5e4ce..6139ba7 100644
--- a/sys/sparc64/isa/ofw_isa.c
+++ b/sys/sparc64/isa/ofw_isa.c
@@ -79,11 +79,11 @@ ofw_isa_range_map(struct isa_ranges *range, int nrange, u_long *start,
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);
}
OpenPOWER on IntegriCloud