mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334952
@ -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