MFC 196643
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 Approved by: re (rwatson)
This commit is contained in:
parent
c83e56f187
commit
b29642064f
@ -943,8 +943,8 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva)
|
|||||||
* coherence domain.
|
* coherence domain.
|
||||||
*/
|
*/
|
||||||
mfence();
|
mfence();
|
||||||
for (; eva < sva; eva += cpu_clflush_line_size)
|
for (; sva < eva; sva += cpu_clflush_line_size)
|
||||||
clflush(eva);
|
clflush(sva);
|
||||||
mfence();
|
mfence();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -967,8 +967,8 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva)
|
|||||||
* coherence domain.
|
* coherence domain.
|
||||||
*/
|
*/
|
||||||
mfence();
|
mfence();
|
||||||
for (; eva < sva; eva += cpu_clflush_line_size)
|
for (; sva < eva; sva += cpu_clflush_line_size)
|
||||||
clflush(eva);
|
clflush(sva);
|
||||||
mfence();
|
mfence();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user