[ARM] 4568/1: fix l2x0 cache invalidate handling of unaligned addresses
authorRui Sousa <rui.p.m.sousa@gmail.com>
Fri, 14 Sep 2007 23:56:19 +0000 (00:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Sep 2007 13:56:39 +0000 (14:56 +0100)
commit4f6627ac3ba6948a4aebec80edfd6565aec3a40c
tree68d18a79a04fdfc22fc6b9ee5bd1bba8d6605c18
parentc2f828977ba5d17c13debba374ea252d18e5ccfb
[ARM] 4568/1: fix l2x0 cache invalidate handling of unaligned addresses

The l2x0_inv_range() function doesn't handle unaligned addresses
correctly. It's necessary to clean the cache lines that are at the
start and end of the invalidate range, if the addresses are not aligned,
to prevent corruption of other data sharing the same cache line.

Signed-off-by: Rui Sousa <rui.p.m.sousa@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c