summary refs log tree commit diff
path: root/arch/sh/lib
diff options
context:
space:
mode:
authorToshinobu Sugioka <sugioka@itonet.co.jp>2006-09-27 14:13:14 +0900
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 14:13:14 +0900
commite7be853df79fe8ae08ba7d933bd21e1dbb0db7bc (patch)
tree0285f786e261017e42e05c080978e1c4b8d55f5d /arch/sh/lib
parent73388cc7c648861742e584a97fbffed16afc7dc3 (diff)
downloadlinux-e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc.tar.gz
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>
Diffstat (limited to 'arch/sh/lib')
-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)
 	bf/s	1b
 	 mov.b	r5,@-r4
 2:				! make VVVV
+	extu.b	r5,r5
 	swap.b	r5,r0		!   V0
 	or	r0,r5		!   VV
 	swap.w	r5,r0		! VV00