Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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