Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 03:37:35 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357015 - head/sys/vm
Message-ID:  <202001230337.00N3bZjw009347@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001230337.00N3bZjw009347>