From owner-svn-src-all@freebsd.org Tue Apr 26 16:40:05 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1B19B1C35B; Tue, 26 Apr 2016 16:40:05 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9208A1392; Tue, 26 Apr 2016 16:40:05 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3QGe46r064941; Tue, 26 Apr 2016 16:40:04 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3QGe46E064940; Tue, 26 Apr 2016 16:40:04 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201604261640.u3QGe46E064940@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Tue, 26 Apr 2016 16:40:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298652 - head/sys/mips/mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 26 Apr 2016 16:40:05 -0000 Author: adrian Date: Tue Apr 26 16:40:04 2016 New Revision: 298652 URL: https://svnweb.freebsd.org/changeset/base/298652 Log: [mips] correctly represent memory region allocations >> 2^^31 Without this, it'd get promoted incorrectly and fail allocation. Submitted by: Mori Hiroki Reviewed by: imp Modified: head/sys/mips/mips/nexus.c Modified: head/sys/mips/mips/nexus.c ============================================================================== --- head/sys/mips/mips/nexus.c Tue Apr 26 16:02:13 2016 (r298651) +++ head/sys/mips/mips/nexus.c Tue Apr 26 16:40:04 2016 (r298652) @@ -566,8 +566,8 @@ nexus_hinted_child(device_t bus, const c __func__, device_get_nameunit(child), (void *)(intptr_t)maddr, msize); - result = bus_set_resource(child, SYS_RES_MEMORY, 0, maddr, - msize); + result = bus_set_resource(child, SYS_RES_MEMORY, 0, + (u_long) maddr, msize); if (result != 0) { device_printf(bus, "warning: bus_set_resource() failed\n");