diff options
author | John Baldwin <jhb@FreeBSD.org> | 2006-05-01 21:36:47 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2006-05-01 21:36:47 +0000 |
commit | 4ac60df584795b81cdfe42fcd5b932e71c73aca7 (patch) | |
tree | 3a0d26aaaeb23a38ebdd2566fd5bdbc8c7bde43f /sys/amd64/include/pmap.h | |
parent | ada5d7d5b0774b24144324b63469431094c4dd26 (diff) | |
download | src-4ac60df584795b81cdfe42fcd5b932e71c73aca7.tar.gz src-4ac60df584795b81cdfe42fcd5b932e71c73aca7.zip |
Add a new 'pmap_invalidate_cache()' to flush the CPU caches via the
wbinvd() instruction. This includes a new IPI so that all CPU caches on
all CPUs are flushed for the SMP case.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=158236
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r-- | sys/amd64/include/pmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 49e3139ccf40..0a774c721158 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -309,6 +309,7 @@ void pmap_unmapdev(vm_offset_t, vm_size_t); void pmap_invalidate_page(pmap_t, vm_offset_t); void pmap_invalidate_range(pmap_t, vm_offset_t, vm_offset_t); void pmap_invalidate_all(pmap_t); +void pmap_invalidate_cache(void); #endif /* _KERNEL */ |