Date: Tue, 26 Apr 2016 16:40:04 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298652 - head/sys/mips/mips Message-ID: <201604261640.u3QGe46E064940@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <yamori813@yahoo.co.jp> 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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604261640.u3QGe46E064940>