svn commit: r194858 - head/sys/sparc64/sparc64

Konstantin Belousov kib at FreeBSD.org
Wed Jun 24 16:52:32 UTC 2009


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");
 	}


More information about the svn-src-all mailing list