Author: kib
Date: Wed Sep  9 21:35:44 2020
New Revision: 365514
URL: https://svnweb.freebsd.org/changeset/base/365514

Log:
  Fix assert.
  
  Noted by:     alc
  MFC after:    1 week

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

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c Wed Sep  9 21:34:31 2020        (r365513)
+++ head/sys/amd64/amd64/pmap.c Wed Sep  9 21:35:44 2020        (r365514)
@@ -2385,7 +2385,7 @@ pmap_init(void)
                    ("pmap_init: can't assign to pagesizes[1]"));
                pagesizes[1] = NBPDR;
                if ((amd_feature & AMDID_PAGE1GB) != 0) {
-                       KASSERT(MAXPAGESIZES > 1 && pagesizes[2] == 0,
+                       KASSERT(MAXPAGESIZES > 2 && pagesizes[2] == 0,
                            ("pmap_init: can't assign to pagesizes[2]"));
                        pagesizes[2] = NBPDP;
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to