summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-06-06 06:07:44 +0000
committeralc <alc@FreeBSD.org>2010-06-06 06:07:44 +0000
commit44bdecdec30bfb4fe0e262de62fb731a65c78527 (patch)
tree2630593b5ec23d458567f469b29f9f8faf89acd0 /contrib/diff/lib
parent13d687dbf66620423ec1b3094aed3e81068e8a1d (diff)
downloadFreeBSD-src-44bdecdec30bfb4fe0e262de62fb731a65c78527.zip
FreeBSD-src-44bdecdec30bfb4fe0e262de62fb731a65c78527.tar.gz
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@
Diffstat (limited to 'contrib/diff/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud