Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 20:35:27 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r202234 - stable/8/sys/sparc64/isa
Message-ID:  <201001132035.o0DKZRYc016624@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Wed Jan 13 20:35:27 2010
New Revision: 202234
URL: http://svn.freebsd.org/changeset/base/202234

Log:
  MFC: r200880
  
  - Correct an off-by-one error when calculating the end of a child
    range.
  - Spell the PCI TLA in uppercase.

Modified:
  stable/8/sys/sparc64/isa/ofw_isa.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/sparc64/isa/ofw_isa.c
==============================================================================
--- stable/8/sys/sparc64/isa/ofw_isa.c	Wed Jan 13 20:33:00 2010	(r202233)
+++ stable/8/sys/sparc64/isa/ofw_isa.c	Wed Jan 13 20:35:27 2010	(r202234)
@@ -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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001132035.o0DKZRYc016624>