Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 16:52:30 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194858 - head/sys/sparc64/sparc64
Message-ID:  <200906241652.n5OGqUFm021067@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Jun 24 16:52:30 2009
New Revision: 194858
URL: http://svn.freebsd.org/changeset/base/194858

Log:
  Unbreak sparc64 after the swap accounting changes: mark kernel_map
  entries allocated for translations in pmap_init() as MAP_NOFAULT. This
  prevents vm_map_insert from trying to account the entries for swap
  usage, that is both wrong and too early to work.
  
  While there, change FALSE to VMFS_NO_SPACE.
  
  Reported and tested by:	Florian Smeets <flo at kasimir com>
  Reviewed by:	marius

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

Modified: head/sys/sparc64/sparc64/pmap.c
==============================================================================
--- head/sys/sparc64/sparc64/pmap.c	Wed Jun 24 16:52:23 2009	(r194857)
+++ head/sys/sparc64/sparc64/pmap.c	Wed Jun 24 16:52:30 2009	(r194858)
@@ -629,8 +629,8 @@ pmap_init(void)
 			continue;
 		if (addr < VM_MIN_PROM_ADDRESS || addr > VM_MAX_PROM_ADDRESS)
 			continue;
-		result = vm_map_find(kernel_map, NULL, 0, &addr, size, FALSE,
-		    VM_PROT_ALL, VM_PROT_ALL, 0);
+		result = vm_map_find(kernel_map, NULL, 0, &addr, size,
+		    VMFS_NO_SPACE, VM_PROT_ALL, VM_PROT_ALL, MAP_NOFAULT);
 		if (result != KERN_SUCCESS || addr != translations[i].om_start)
 			panic("pmap_init: vm_map_find");
 	}



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