Date: Thu, 3 Jan 2008 06:57:59 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132376 for review Message-ID: <200801030657.m036vxPX026095@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132376 Change 132376 by imp@imp_paco-paco on 2008/01/03 06:57:20 Update, I hope correctly, the pmap_enter_quick function. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/pmap.c#10 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/pmap.c#10 (text+ko) ==== @@ -1768,17 +1768,16 @@ * 2. Not wired. * 3. Read access. * 4. No page table pages. - * 5. Tlbflush is deferred to calling procedure. - * 6. Page IS managed. * but is *MUCH* faster than pmap_enter... */ -vm_page_t -pmap_enter_quick(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, - vm_page_t mpte) + +void +pmap_enter_quick(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot) { pt_entry_t *pte; vm_offset_t pa; + vm_page_t mpte = NULL; mtx_assert(&vm_page_queue_mtx, MA_OWNED); VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED); @@ -1842,7 +1841,7 @@ if (mpte) pmap_unwire_pte_hold(pmap, mpte); PMAP_UNLOCK(pmap); - return 0; + return; } /* @@ -1888,7 +1887,7 @@ } PMAP_UNLOCK(pmap); - return mpte; + return; } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801030657.m036vxPX026095>