From 940be86497cd228a4d12374b1527d969799c62be Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 23 May 2015 16:54:46 +0000 Subject: [PATCH] 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. --- sys/mips/mips/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index dacf43fc23ec..7ab4244d9685 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -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