From: Toshinobu Sugioka Date: Wed, 27 Sep 2006 05:13:14 +0000 (+0900) Subject: sh: Fix a sign extension bug in memset(). X-Git-Tag: v2.6.19-rc1~902^2~85 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc;p=karo-tx-linux.git sh: Fix a sign extension bug in memset(). Minor sign-extension bug in SH-specific memset().. Signed-off-by: Toshinobu Sugioka Signed-off-by: Paul Mundt --- 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