svn commit: r357015 - head/sys/vm

Jeff Roberson jeff at FreeBSD.org
Thu Jan 23 03:37:36 UTC 2020


Author: jeff
Date: Thu Jan 23 03:37:35 2020
New Revision: 357015
URL: https://svnweb.freebsd.org/changeset/base/357015

Log:
  Some architectures with DMAP still consume boot kva.  Simplify the test for
  claiming kva in uma_startup2() to handle this.
  
  Reported by:	bdragon

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Thu Jan 23 03:36:50 2020	(r357014)
+++ head/sys/vm/uma_core.c	Thu Jan 23 03:37:35 2020	(r357015)
@@ -2614,7 +2614,7 @@ void
 uma_startup2(void)
 {
 
-	if (!PMAP_HAS_DMAP) {
+	if (bootstart != bootmem) {
 		vm_map_lock(kernel_map);
 		(void)vm_map_insert(kernel_map, NULL, 0, bootstart, bootmem,
 		    VM_PROT_RW, VM_PROT_RW, MAP_NOFAULT);


More information about the svn-src-all mailing list