mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-06 20:25:44 +00:00
ARM 5794/1 Flush the D-cache during copy_user_highpage()
This commit is contained in:
@@ -41,6 +41,16 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to,
|
||||
kfrom = kmap_atomic(from, KM_USER0);
|
||||
kto = kmap_atomic(to, KM_USER1);
|
||||
copy_page(kto, kfrom);
|
||||
#ifdef CONFIG_HIGHMEM
|
||||
/*
|
||||
* kmap_atomic() doesn't set the page virtual address, and
|
||||
* kunmap_atomic() takes care of cache flushing already.
|
||||
*/
|
||||
if (page_address(to) != NULL)
|
||||
#endif
|
||||
__cpuc_flush_dcache_page(kto);
|
||||
|
||||
|
||||
kunmap_atomic(kto, KM_USER1);
|
||||
kunmap_atomic(kfrom, KM_USER0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user