]> git.baikalelectronics.ru Git - kernel.git/commit
[AVR32] Fix copy_to_user_page() breakage
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Mon, 3 Dec 2007 17:04:11 +0000 (18:04 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 7 Dec 2007 13:54:47 +0000 (14:54 +0100)
commit4bd5f8dbcf7e5e172fc19ab6c482d3f115b184b0
treea8a2e4f9e2e18e031739a8af1e8e3d08af1770ac
parenta0a8120edcd44c796d104af31c85f434cc7605c9
[AVR32] Fix copy_to_user_page() breakage

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: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mm/cache.c
include/asm-avr32/cacheflush.h