summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/sf_buf.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-07-29 08:49:58 +0000
committerkib <kib@FreeBSD.org>2009-07-29 08:49:58 +0000
commit7b17971146d9d04f6fdfc56456eda87bddfb201f (patch)
treea9270d20c2533ced81403eaadb92f28a6d20d577 /sys/i386/include/sf_buf.h
parent6b019307f44e0dbb389ad68649826526b790a7cc (diff)
downloadFreeBSD-src-7b17971146d9d04f6fdfc56456eda87bddfb201f.zip
FreeBSD-src-7b17971146d9d04f6fdfc56456eda87bddfb201f.tar.gz
As was done in r195820 for amd64, use clflush for flushing cache lines
when memory page caching attributes changed, and CPU does not support self-snoop, but implemented clflush, for i386. Take care of possible mappings of the page by sf buffer by utilizing the mapping for clflush, otherwise map the page transiently. Amd64 used direct map. Proposed and reviewed by: alc Approved by: re (kensmith)
Diffstat (limited to 'sys/i386/include/sf_buf.h')
-rw-r--r--sys/i386/include/sf_buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/sf_buf.h b/sys/i386/include/sf_buf.h
index 9076260..7bc1095 100644
--- a/sys/i386/include/sf_buf.h
+++ b/sys/i386/include/sf_buf.h
@@ -58,4 +58,6 @@ sf_buf_page(struct sf_buf *sf)
return (sf->m);
}
+boolean_t sf_buf_invalidate_cache(vm_page_t m);
+
#endif /* !_MACHINE_SF_BUF_H_ */
OpenPOWER on IntegriCloud