aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/flush-sh4.c
Commit message (Collapse)AuthorAgeFilesLines
* sh: Fix up the SH-5 build with caches enabled.Paul Mundt2009-08-161-54/+27
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Migrate SH-4 cacheflush ops to function pointers.Paul Mundt2009-08-151-3/+10
| | | | | | | | | | This paves the way for allowing individual CPUs to overload the individual flushing routines that they care about without having to depend on weak aliases. SH-4 is converted over initially, as it wires up pretty much everything. The majority of the other CPUs will simply use the default no-op implementation with their own region flushers wired up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add register alignment helpers for shared flushers.Paul Mundt2009-08-151-9/+12
| | | | | | | | | | | This plugs in some register alignment helpers for the shared flushers, allowing them to also be used on SH-5. The main rationale here is that in the SH-5 case we have a variable ABI, where the pointer size may not equal the register width. This register extension is taken care of by the SH-5 code already today, and is otherwise unused on the SH-4 code. This combines the two and allows us to kill off the SH-5 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Partially unroll the SH-4 __flush_xxx_region() flushers.Paul Mundt2009-08-041-21/+83
| | | | | | | | This does a bit of unrolling for the SH-4 region flushers. Based on an earlier patch by SUGIOKA Toshinobu. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Split out SH-4 __flush_xxx_region() ops.Paul Mundt2009-08-041-0/+63
This splits out the SH-4 __flush_xxx_region() functions and defines them as weak symbols. This allows us to provide optimized versions without having to ifdef cache-sh4.c to death. Signed-off-by: Paul Mundt <lethal@linux-sh.org>