Date: Thu, 15 Jan 2009 23:03:27 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187319 - head/sys/mips/mips Message-ID: <200901152303.n0FN3R3n089892@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Thu Jan 15 23:03:27 2009 New Revision: 187319 URL: http://svn.freebsd.org/changeset/base/187319 Log: - pmap_track_modified was retired in r178606. Reintroducing it was a mistake. Spotted by: alc@ Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c ============================================================================== --- head/sys/mips/mips/pmap.c Thu Jan 15 22:41:48 2009 (r187318) +++ head/sys/mips/mips/pmap.c Thu Jan 15 23:03:27 2009 (r187319) @@ -490,25 +490,6 @@ pmap_nw_modified(pt_entry_t pte) #endif - -/* - * this routine defines the region(s) of memory that should - * not be tested for the modified bit. - */ -static PMAP_INLINE int -pmap_track_modified(vm_offset_t va) -{ - /* - * Kernel submap initialization has been moved for MD to MI code. ie - * from cpu_startup() to vm_ksubmap_init(). clean_sva and clean_eva - * are part of the kmi structure. - */ - if ((va < kmi.clean_sva) || (va >= kmi.clean_eva)) - return (1); - else - return (0); -} - static void pmap_invalidate_all(pmap_t pmap) { @@ -1444,8 +1425,7 @@ pmap_remove_pte(struct pmap *pmap, pt_en va, oldpte); } #endif - if (pmap_track_modified(va)) - vm_page_dirty(m); + vm_page_dirty(m); } if (m->md.pv_flags & PV_TABLE_REF) vm_page_flag_set(m, PG_REFERENCED);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901152303.n0FN3R3n089892>