aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/lib/clear_page.S
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-03-21 05:07:04 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-04-18 12:50:02 -0400
commit5c0cbd74bb56aeb7f3de883ab79c5f501622ccb1 (patch)
treee783f5ee9852c53f4161f1c70cd95ab7e0f1f81c /arch/sh/lib/clear_page.S
parent2163b4cb01cd79cd1291696fc4636740026d61cb (diff)
sh: Allow optimized clear/copy page routines to be used on SH-2.
Presently these are restricted to SH-3 and SH-4, so we reorder the ifdefs a bit to let other parts use these also. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/lib/clear_page.S')
-rw-r--r--arch/sh/lib/clear_page.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/lib/clear_page.S b/arch/sh/lib/clear_page.S
index 3539123fe517..8342bfbde64c 100644
--- a/arch/sh/lib/clear_page.S
+++ b/arch/sh/lib/clear_page.S
@@ -27,11 +27,11 @@ ENTRY(clear_page)
27 mov #0,r0 27 mov #0,r0
28 ! 28 !
291: 291:
30#if defined(CONFIG_CPU_SH3) 30#if defined(CONFIG_CPU_SH4)
31 mov.l r0,@r4
32#elif defined(CONFIG_CPU_SH4)
33 movca.l r0,@r4 31 movca.l r0,@r4
34 mov r4,r1 32 mov r4,r1
33#else
34 mov.l r0,@r4
35#endif 35#endif
36 add #32,r4 36 add #32,r4
37 mov.l r0,@-r4 37 mov.l r0,@-r4