Skip to content

Commit

Permalink
sh: Fix a sign extension bug in memset().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Toshinobu Sugioka authored and Paul Mundt committed Sep 27, 2006
1 parent 73388cc commit e7be853
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/lib/memset.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7be853

Please sign in to comment.