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:
parent
c3cf0b476f
commit
cbc3c1f687
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196643
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user