1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

- Correct an off-by-one error when calculating the end of a child

range.
- Spell the PCI TLA in uppercase.
This commit is contained in:
Marius Strobl 2009-12-22 21:53:19 +00:00
parent 63cd5b6d38
commit b748710c34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200880

View File

@ -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);
}