Skip to content

Commit

Permalink
[PATCH] ARM: 2705/1: fix writesw for misaligned source pointer
Browse files Browse the repository at this point in the history
Patch from Nicolas Pitre

Signed-off-by: Nicolas Pitre
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Nicolas Pitre authored and Russell King committed Jun 8, 2005
1 parent 57cfa5e commit aeabbbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/lib/io-writesw-armv4.S
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ ENTRY(__raw_writesw)
subs r2, r2, #2
orr ip, ip, r3, push_hbyte1
strh ip, [r0]
bpl 2b
bpl 1b

3: tst r2, #1
2: movne ip, r3, lsr #8
tst r2, #1
3: movne ip, r3, lsr #8
strneh ip, [r0]
mov pc, lr

0 comments on commit aeabbbb

Please sign in to comment.