]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] add ARMv5TEJ aware cache flush method to compressed/head.S
authorNicolas Pitre <nico@cam.org>
Wed, 31 Oct 2007 19:15:29 +0000 (15:15 -0400)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:03:39 +0000 (15:03 +0000)
commit15754bf98ff564e8bb5296c7f5e67bc59b5700aa
tree56ef6d66f39e71c5f17dd5dc2fcfd4b7ee42a2cc
parente50d64097b6e63278789ee3a4394d127bd6e4254
[ARM] add ARMv5TEJ aware cache flush method to compressed/head.S

The default ARMv4 method consisting of reading through some memory
area isn't compatible with the cache replacement policy of some
ARMv5TEJ compatible cache implementations.  It is also a bit wasteful
when a dedicated instruction can do the needed work optimally.

It is hard to tell if all ARMv5TEJ cores will support the used CP15
instruction, but at least all those implementations Linux currently
knows about (ARM926 and ARM1026) do support it.

Tested on an OMAP1610 H2 target.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Tested-by: George G. Davis <gdavis@mvista.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S