Fix braino in r334799. Maxmem is in pages.
Reported by: ae, pho Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
c205be608c
commit
b45e10c3f4
@ -122,7 +122,7 @@ mp_bootaddress(vm_paddr_t *physmap, unsigned int *physmap_idx)
|
||||
*/
|
||||
if (physmap[i] >= GiB(4) || physmap[i + 1] -
|
||||
round_page(physmap[i]) < PAGE_SIZE * 3 ||
|
||||
physmap[i + 1] > Maxmem)
|
||||
atop(physmap[i + 1]) > Maxmem)
|
||||
continue;
|
||||
|
||||
allocated = true;
|
||||
|
Loading…
Reference in New Issue
Block a user