diff options
author | andrew <andrew@FreeBSD.org> | 2016-03-01 11:39:07 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-03-01 11:39:07 +0000 |
commit | f5009ab96f95675190ec64e737eee2590f029ad0 (patch) | |
tree | 68ccbeb72be10a34376c8e15fdaa34ec2818d2e8 /sys/mips | |
parent | fa1857f11586cb976c4962c4748f7b39cb3d96d2 (diff) | |
download | FreeBSD-src-f5009ab96f95675190ec64e737eee2590f029ad0.zip FreeBSD-src-f5009ab96f95675190ec64e737eee2590f029ad0.tar.gz |
Make the memory size returned from fdt_get_mem_regions a 64-bit type. This
is the physical memory size so may be larger than a u_long can hold, e.g.
on ARM with LPAE we could see an address space of up to 40 bits. On ARM
u_long is only 32 bits so the memory size will be truncated, possibly to
zero.
Reported by: bz
Sponsored by: ABT Systems Ltd
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/beri/beri_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/beri/beri_machdep.c b/sys/mips/beri/beri_machdep.c index 50d8b71..2c153e4 100644 --- a/sys/mips/beri/beri_machdep.c +++ b/sys/mips/beri/beri_machdep.c @@ -90,8 +90,8 @@ mips_init(void) int i; #ifdef FDT struct mem_region mr[FDT_MEM_REGIONS]; + uint64_t val; int mr_cnt; - u_long val; int j; #endif |