]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make pmap_copy_page() L2-cache friendly by doing the copy through the
authorneel <neel@FreeBSD.org>
Fri, 13 Nov 2009 09:24:09 +0000 (09:24 +0000)
committerneel <neel@FreeBSD.org>
Fri, 13 Nov 2009 09:24:09 +0000 (09:24 +0000)
commitde1449747c34e623c49281428d94b996ae55f124
tree81cb8f2b6dbbed9a2435250af37fa4a5bd384d58
parentde58e642f4d991e141e898a81f62f6d94e81e5f3
Make pmap_copy_page() L2-cache friendly by doing the copy through the
cacheable window on physical memory (KSEG0). On the Sibyte processor
going through the uncacheable window (KSEG1) bypasses both L1 and L2
caches so we may end up with stale contents in the L2 cache.

This also makes it consistent with the rest of the function that
uses cacheable mappings to copy pages.

Approved by: imp (mentor)
sys/mips/mips/pmap.c