Date: Sun, 6 Jun 2010 06:07:44 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/mips/mips pmap.c Message-ID: <201006060607.o5667w5E019746@repoman.freebsd.org>
index | next in thread | raw e-mail
alc 2010-06-06 06:07:44 UTC
FreeBSD src repository
Modified files:
sys/mips/mips pmap.c
Log:
SVN rev 208866 on 2010-06-06 06:07:44Z by alc
Don't set PG_WRITEABLE in init_pte_prot() (and thus pmap_enter()) unless
the page is managed.
Don't set the machine-independent layer's dirty field for the page being
mapped in init_pte_prot(). (The dirty field is only supposed to set when
a mapping is removed or write-protected and the page was managed and
modified.)
Determine whether or not to perform dirty bit emulation based on whether
or not the page is managed, i.e., pageable, not based on whether the page
is being mapped into the kernel address space. Nearly all of the kernel
address space consists of unmanaged pages, so this has neglible impact on
the overhead of dirty bit emulation for the kernel address space. However,
there can also exist unmanaged pages in the user address space. Previously,
dirty bit emulation was unnecessarily performed on these pages.
Tested by: jchandra@
Revision Changes Path
1.61 +7 -13 src/sys/mips/mips/pmap.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006060607.o5667w5E019746>
