Konstantin Belousov 206a336872 When the page caching attributes are changed, after new mapping is
established, OS shall flush the caches on all processors that may have
used the mapping previously. This operation is not needed if processors
support self-snooping. If not, but clflush instruction is implemented
on the CPU, series of the clflush can be used on the mapping region.
Otherwise, we have to flush the whole cache. The later operation is very
expensive, and AMD-made CPUs do not have self-snooping.

Implement cache flush for remapped region by using clflush for amd64,
when supported by CPU.

Proposed and reviewed by:	alc
Approved by:	re (kensmith)
2009-07-22 14:32:38 +00:00
..
2009-04-15 17:31:22 +00:00
2009-03-05 16:56:16 +00:00
2009-04-15 17:31:22 +00:00
2009-07-05 17:45:48 +00:00
2009-05-06 17:48:39 +00:00
2006-10-28 13:12:06 +00:00
2009-05-16 22:08:00 +00:00