Swap the start/end virtual addresses in pmap_invalidate_cache_range().

This fixes the functionality on non SelfSnoop hardware.

Found by:	rnoland
Submitted by:	alc
Reviewed by:	kib
MFC after:	3 days
This commit is contained in:
Robert Noland 2009-08-29 16:01:21 +00:00
parent c3cf0b476f
commit cbc3c1f687
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196643
2 changed files with 4 additions and 4 deletions

View File

@ -943,8 +943,8 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva)
* coherence domain.
*/
mfence();
for (; eva < sva; eva += cpu_clflush_line_size)
clflush(eva);
for (; sva < eva; sva += cpu_clflush_line_size)
clflush(sva);
mfence();
} else {

View File

@ -967,8 +967,8 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva)
* coherence domain.
*/
mfence();
for (; eva < sva; eva += cpu_clflush_line_size)
clflush(eva);
for (; sva < eva; sva += cpu_clflush_line_size)
clflush(sva);
mfence();
} else {