Skip to content

Commit

Permalink
sh: Allow optimized clear/copy page routines to be used on SH-2.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Apr 18, 2008
1 parent 2163b4c commit 5c0cbd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arch/sh/lib/clear_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ ENTRY(clear_page)
mov #0,r0
!
1:
#if defined(CONFIG_CPU_SH3)
mov.l r0,@r4
#elif defined(CONFIG_CPU_SH4)
#if defined(CONFIG_CPU_SH4)
movca.l r0,@r4
mov r4,r1
#else
mov.l r0,@r4
#endif
add #32,r4
mov.l r0,@-r4
Expand Down
6 changes: 3 additions & 3 deletions arch/sh/lib/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ ENTRY(copy_page)
mov.l @r11+,r5
mov.l @r11+,r6
mov.l @r11+,r7
#if defined(CONFIG_CPU_SH3)
mov.l r0,@r10
#elif defined(CONFIG_CPU_SH4)
#if defined(CONFIG_CPU_SH4)
movca.l r0,@r10
mov r10,r0
#else
mov.l r0,@r10
#endif
add #32,r10
mov.l r7,@-r10
Expand Down

0 comments on commit 5c0cbd7

Please sign in to comment.