svn commit: r298652 - head/sys/mips/mips
Adrian Chadd
adrian at FreeBSD.org
Tue Apr 26 16:40:05 UTC 2016
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 at 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");
More information about the svn-src-head
mailing list