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:
Konstantin Belousov 2018-06-11 15:28:20 +00:00
parent c205be608c
commit b45e10c3f4

View File

@ -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;