Author: kib
Date: Mon Jun 11 15:28:20 2018
New Revision: 334952
URL: https://svnweb.freebsd.org/changeset/base/334952

Log:
  Fix braino in r334799.  Maxmem is in pages.
  
  Reported by:  ae, pho
  Tested by:    pho
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/amd64/amd64/mp_machdep.c

Modified: head/sys/amd64/amd64/mp_machdep.c
==============================================================================
--- head/sys/amd64/amd64/mp_machdep.c   Mon Jun 11 15:18:31 2018        
(r334951)
+++ head/sys/amd64/amd64/mp_machdep.c   Mon Jun 11 15:28:20 2018        
(r334952)
@@ -122,7 +122,7 @@ mp_bootaddress(vm_paddr_t *physmap, unsigned int *phys
                 */
                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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to