From e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc Mon Sep 17 00:00:00 2001 From: Toshinobu Sugioka Date: Wed, 27 Sep 2006 14:13:14 +0900 Subject: 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 --- arch/sh/lib/memset.S | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/sh/lib') 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 -- cgit v1.2.3