Skip to content
Snippets Groups Projects
user avatar
Haavard Skinnemoen authored
The current implementation of copy_to_user_page() gives "vaddr" to the
cache instruction when trying to sync the icache with the dcache. If
vaddr does not exist in the TLB, the CPU will silently abort the
operation, which may result in the caches staying out of sync.

To fix this, pass the "dst" parameter to flush_icache_range() instead
-- we know this is valid because we just wrote to it.

Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
68ca3e53
History
Name Last commit Last update