mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm32: Align arguments of sync_icache() syscall to cacheline size.
Otherwise, we may miss synchronization of the last cacheline.
MFC after: 3 days
(cherry picked from commit ec090f4a67)
This commit is contained in:
parent
e8dfdf40be
commit
6930f97474
1 changed files with 3 additions and 6 deletions
|
|
@ -68,12 +68,9 @@ sync_icache(uintptr_t addr, size_t len)
|
|||
size_t size;
|
||||
vm_offset_t rv;
|
||||
|
||||
/*
|
||||
* Align starting address to even number because value of "1"
|
||||
* is used as return value for success.
|
||||
*/
|
||||
len += addr & 1;
|
||||
addr &= ~1;
|
||||
/* Align starting address to cacheline size */
|
||||
len += addr & cpuinfo.dcache_line_mask;
|
||||
addr &= ~cpuinfo.dcache_line_mask;
|
||||
|
||||
/* Break whole range to pages. */
|
||||
do {
|
||||
|
|
|
|||
Loading…
Reference in a new issue