summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-04-26 16:40:04 +0000
committeradrian <adrian@FreeBSD.org>2016-04-26 16:40:04 +0000
commit0e0dfb37d2bae3d122564b07d925a302f2278003 (patch)
tree7b3ae641e39360f24a346c372728e5d122fe4ae3 /sys/mips
parent50d52a4354c7c2dff29fab3e3746ce688018e4ce (diff)
downloadFreeBSD-src-0e0dfb37d2bae3d122564b07d925a302f2278003.zip
FreeBSD-src-0e0dfb37d2bae3d122564b07d925a302f2278003.tar.gz
[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
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/nexus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c
index 45e47ef..28e16e8 100644
--- a/sys/mips/mips/nexus.c
+++ b/sys/mips/mips/nexus.c
@@ -566,8 +566,8 @@ nexus_hinted_child(device_t bus, const char *dname, int dunit)
__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");
OpenPOWER on IntegriCloud