From: Nicolas Pitre Date: Wed, 8 Jun 2005 18:00:16 +0000 (+0100) Subject: [PATCH] ARM: 2705/1: fix writesw for misaligned source pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aeabbbbe126f3d5e61e2db07629443cd10932bb2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] ARM: 2705/1: fix writesw for misaligned source pointer Patch from Nicolas Pitre Signed-off-by: Nicolas Pitre Signed-off-by: Russell King --- diff --git a/arch/arm/lib/io-writesw-armv4.S b/arch/arm/lib/io-writesw-armv4.S index 6d1d7c27806..5e240e452af 100644 --- a/arch/arm/lib/io-writesw-armv4.S +++ b/arch/arm/lib/io-writesw-armv4.S @@ -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