Date: Sat, 6 Nov 2010 13:58:25 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r214879 - head/sys/sparc64/sparc64 Message-ID: <201011061358.oA6DwPC1033153@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marius Date: Sat Nov 6 13:58:24 2010 New Revision: 214879 URL: http://svn.freebsd.org/changeset/base/214879 Log: Implement pmap_is_prefaultable(). Reviewed by: alc (with bugfix) Modified: head/sys/sparc64/sparc64/pmap.c Modified: head/sys/sparc64/sparc64/pmap.c ============================================================================== --- head/sys/sparc64/sparc64/pmap.c Sat Nov 6 13:46:58 2010 (r214878) +++ head/sys/sparc64/sparc64/pmap.c Sat Nov 6 13:58:24 2010 (r214879) @@ -1960,8 +1960,12 @@ pmap_is_modified(vm_page_t m) boolean_t pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr) { + boolean_t rv; - return (FALSE); + PMAP_LOCK(pmap); + rv = tsb_tte_lookup(pmap, addr) == NULL; + PMAP_UNLOCK(pmap); + return (rv); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011061358.oA6DwPC1033153>