aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshinobu Sugioka <sugioka@itonet.co.jp>2006-09-27 01:13:14 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 01:13:14 -0400
commite7be853df79fe8ae08ba7d933bd21e1dbb0db7bc (patch)
tree0285f786e261017e42e05c080978e1c4b8d55f5d
parent73388cc7c648861742e584a97fbffed16afc7dc3 (diff)
sh: Fix a sign extension bug in memset().
Minor sign-extension bug in SH-specific memset().. Signed-off-by: Toshinobu Sugioka <sugioka@itonet.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/lib/memset.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/lib/memset.S b/arch/sh/lib/memset.S
index 95670090680e..af91fe2b72a6 100644
--- a/arch/sh/lib/memset.S
+++ b/arch/sh/lib/memset.S
@@ -29,6 +29,7 @@ ENTRY(memset)
29 bf/s 1b 29 bf/s 1b
30 mov.b r5,@-r4 30 mov.b r5,@-r4
312: ! make VVVV 312: ! make VVVV
32 extu.b r5,r5
32 swap.b r5,r0 ! V0 33 swap.b r5,r0 ! V0
33 or r0,r5 ! VV 34 or r0,r5 ! VV
34 swap.w r5,r0 ! VV00 35 swap.w r5,r0 ! VV00