From: Haavard Skinnemoen Date: Mon, 18 Jun 2007 12:08:18 +0000 (+0200) Subject: [AVR32] Fix bug in invalidate_dcache_region() X-Git-Tag: v2.6.22-rc6~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab61f7d21ab7f564fce322c498e4a7d6171140db;p=pandora-kernel.git [AVR32] Fix bug in invalidate_dcache_region() If (start + size) is not cacheline aligned and (start & mask) > (end & mask), the last but one cacheline won't be invalidated as it should. Fix this by rounding `end' down to the nearest cacheline boundary if it gets adjusted due to misalignment. Also flush the write buffer unconditionally -- if the dcache wrote back a line just before we invalidated it, the dirty data may be sitting in the write buffer waiting to corrupt our buffer later. Signed-off-by: Haavard Skinnemoen --- Reading git-diff-tree failed