Date: Mon, 18 Apr 2011 21:24:42 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h Message-ID: <201104182125.p3ILP9W3056165@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2011-04-18 21:24:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/include pmap.h sys/i386/i386 pmap.c sys/i386/include pmap.h Log: SVN rev 220803 on 2011-04-18 21:24:42Z by kib Make pmap_invalidate_cache_range() available for consumption on amd64. Add pmap_invalidate_cache_pages() method on x86. It flushes the CPU cache for the set of pages, which are not neccessary mapped. Since its supposed use is to prepare the move of the pages ownership to a device that does not snoop all CPU accesses to the main memory (read GPU in GMCH), do not rely on CPU self-snoop feature. amd64 implementation takes advantage of the direct map. On i386, extract the helper pmap_flush_page() from pmap_page_set_memattr(), and use it to make a temporary mapping of the flushed page. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Revision Changes Path 1.720 +32 -3 src/sys/amd64/amd64/pmap.c 1.159 +2 -0 src/sys/amd64/include/pmap.h 1.699 +42 -10 src/sys/i386/i386/pmap.c 1.153 +2 -1 src/sys/i386/include/pmap.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104182125.p3ILP9W3056165>