From owner-svn-src-head@FreeBSD.ORG Tue Dec 22 21:53:19 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3121106568B; Tue, 22 Dec 2009 21:53:19 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A22138FC0A; Tue, 22 Dec 2009 21:53:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBMLrJmm077821; Tue, 22 Dec 2009 21:53:19 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBMLrJaJ077819; Tue, 22 Dec 2009 21:53:19 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <200912222153.nBMLrJaJ077819@svn.freebsd.org> From: Marius Strobl Date: Tue, 22 Dec 2009 21:53:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200880 - head/sys/sparc64/isa X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 21:53:19 -0000 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); }