Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2015 16:54:47 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283316 - head/sys/mips/mips
Message-ID:  <201505231654.t4NGslJ0066287@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat May 23 16:54:46 2015
New Revision: 283316
URL: https://svnweb.freebsd.org/changeset/base/283316

Log:
  Simplify the allocation of page table pages for mips64.  Specifically,
  when allocation fails, it suffices to perform VM_WAIT.  The direct map
  covers the entirely of physical memory, so unlike 32-bit mips any
  physical page can be used as a page table page.

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

Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c	Sat May 23 14:59:27 2015	(r283315)
+++ head/sys/mips/mips/pmap.c	Sat May 23 16:54:46 2015	(r283316)
@@ -1036,7 +1036,7 @@ pmap_grow_direct_page_cache()
 {
 
 #ifdef __mips_n64
-	vm_pageout_grow_cache(3, 0, MIPS_XKPHYS_LARGEST_PHYS);
+	VM_WAIT;
 #else
 	vm_pageout_grow_cache(3, 0, MIPS_KSEG0_LARGEST_PHYS);
 #endif



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