Fix a long standing 32bit-ism. Don't assume that the size of a chunk of

memory in phys_avail will fit in 'int', use vm_size_t.  This fixes booting
on sparc64 machines with more than 2 gigs of ram.

Thanks to Jan Chrillesen for providing me with access to a 4 gig machine.
This commit is contained in:
Jake Burkholder 2002-04-03 06:57:52 +00:00
parent dd6306b6ad
commit 48f9a59443

View File

@ -192,7 +192,7 @@ vm_page_startup(vm_offset_t starta, vm_offset_t enda, vm_offset_t vaddr)
}
for (i = 0; phys_avail[i + 1]; i += 2) {
int size = phys_avail[i + 1] - phys_avail[i];
vm_size_t size = phys_avail[i + 1] - phys_avail[i];
if (size > biggestsize) {
biggestone = i;