mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
8a503ad2c9
commit
e2ba743711
2 changed files with 4 additions and 4 deletions
|
|
@ -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 a new issue