aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-03-08 17:25:33 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-03-08 17:25:33 +0000
commit3c8fdae78cf5d73c6739912a1ff087c0f23b2a47 (patch)
tree85203dba56f72d897ffa073aa53fb03b011f4e52 /arch/arm/lib
parent7986824e4e31d6c66f39d2f11ab93fcfed21f593 (diff)
downloadkernel_samsung_smdk4412-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.tar.gz
kernel_samsung_smdk4412-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.tar.bz2
kernel_samsung_smdk4412-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.zip
[ARM] Fix muldi3.S
When shifting the low-parts of signed numbers, a logical shift should be used to avoid sign-extending a bit which isn't a sign bit. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/muldi3.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/muldi3.S b/arch/arm/lib/muldi3.S
index 72d594184b8..d89c6061579 100644
--- a/arch/arm/lib/muldi3.S
+++ b/arch/arm/lib/muldi3.S
@@ -29,8 +29,8 @@ ENTRY(__aeabi_lmul)
mul xh, yl, xh
mla xh, xl, yh, xh
- mov ip, xl, asr #16
- mov yh, yl, asr #16
+ mov ip, xl, lsr #16
+ mov yh, yl, lsr #16
bic xl, xl, ip, lsl #16
bic yl, yl, yh, lsl #16
mla xh, yh, ip, xh