• Haavard Skinnemoen's avatar
    [AVR32] Fix copy_to_user_page() breakage · 68ca3e53
    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
cacheflush.h 3.87 KB