From owner-svn-src-all@FreeBSD.ORG Wed Nov 19 11:49:35 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B527E1065670; Wed, 19 Nov 2008 11:49:35 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A102C8FC21; Wed, 19 Nov 2008 11:49:35 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAJBnZg7016440; Wed, 19 Nov 2008 11:49:35 GMT (envelope-from raj@svn.freebsd.org) Received: (from raj@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAJBnZL9016439; Wed, 19 Nov 2008 11:49:35 GMT (envelope-from raj@svn.freebsd.org) Message-Id: <200811191149.mAJBnZL9016439@svn.freebsd.org> From: Rafal Jaworowski Date: Wed, 19 Nov 2008 11:49:35 +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: r185091 - head/sys/arm/mv X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2008 11:49:35 -0000 Author: raj Date: Wed Nov 19 11:49:35 2008 New Revision: 185091 URL: http://svn.freebsd.org/changeset/base/185091 Log: Fix off-by-one error in mbus_attach(). Modified: head/sys/arm/mv/obio.c Modified: head/sys/arm/mv/obio.c ============================================================================== --- head/sys/arm/mv/obio.c Wed Nov 19 11:47:23 2008 (r185090) +++ head/sys/arm/mv/obio.c Wed Nov 19 11:49:35 2008 (r185091) @@ -99,7 +99,7 @@ mbus_attach(device_t dev) resource_list_init(&od->od_resources); resource_list_add(&od->od_resources, SYS_RES_MEMORY, 0, - od->od_base, od->od_base + od->od_size, od->od_size); + od->od_base, od->od_base + od->od_size - 1, od->od_size); for (i = 0; od->od_irqs[i] != -1; i++) { resource_list_add(&od->od_resources, SYS_RES_IRQ, i,