Commit aeabbbbe authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[PATCH] ARM: 2705/1: fix writesw for misaligned source pointer

Patch from Nicolas Pitre

Signed-off-by: Nicolas Pitre
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 57cfa5e9
...@@ -87,9 +87,9 @@ ENTRY(__raw_writesw) ...@@ -87,9 +87,9 @@ ENTRY(__raw_writesw)
subs r2, r2, #2 subs r2, r2, #2
orr ip, ip, r3, push_hbyte1 orr ip, ip, r3, push_hbyte1
strh ip, [r0] strh ip, [r0]
bpl 2b bpl 1b
3: tst r2, #1 tst r2, #1
2: movne ip, r3, lsr #8 3: movne ip, r3, lsr #8
strneh ip, [r0] strneh ip, [r0]
mov pc, lr mov pc, lr
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment