]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit916e1916b066ccd33169f359c9e2c77e8af0dd25
tree68d18a79a04fdfc22fc6b9ee5bd1bba8d6605c18
parent5e0fd473dad8787a0ae103ddaa77ae360d43d7c8
[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