summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2015-05-23 16:54:46 +0000
committeralc <alc@FreeBSD.org>2015-05-23 16:54:46 +0000
commit7ec6cd48d050f08cc2fd1c978fd1814c690db4cf (patch)
tree8b7afbb9a9fba26573a3adc4341b33b390ac124e
parentfe0f292016ddd669523eb994dfa3c352edd4d9a0 (diff)
downloadFreeBSD-src-7ec6cd48d050f08cc2fd1c978fd1814c690db4cf.zip
FreeBSD-src-7ec6cd48d050f08cc2fd1c978fd1814c690db4cf.tar.gz
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.
-rw-r--r--sys/mips/mips/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index dacf43f..7ab4244 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
OpenPOWER on IntegriCloud