summaryrefslogtreecommitdiffstats
path: root/arch/sh/lib/div64.S
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-07-06 10:58:04 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-07-06 10:58:04 +0900
commit04c7d9579f25ff0dd01efa958805f34c92bc6a71 (patch)
tree125a0da3b1d4397af86b562c5b4e8df1eedf10ab /arch/sh/lib/div64.S
parent75f016a7ce75220d898608791870ab7da549a430 (diff)
downloadop-kernel-dev-04c7d9579f25ff0dd01efa958805f34c92bc6a71.zip
op-kernel-dev-04c7d9579f25ff0dd01efa958805f34c92bc6a71.tar.gz
sh: Correct __xdiv64_32/div64_32 return value size.
These should be returning a uint32_t, whereas they were erroneously returning a u64 before. As the register sizes are 32-bits, this doesn't really make a lot of sense. Reported-by: Katsuya MATSUBARA <matsu@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/lib/div64.S')
-rw-r--r--arch/sh/lib/div64.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/lib/div64.S b/arch/sh/lib/div64.S
index eefc275..5ee7334 100644
--- a/arch/sh/lib/div64.S
+++ b/arch/sh/lib/div64.S
@@ -1,12 +1,12 @@
/*
- * unsigned long long __xdiv64_32(unsigned long long n, unsigned long d);
+ * unsigned long __xdiv64_32(unsigned long long n, unsigned long d);
*/
#include <linux/linkage.h>
.text
ENTRY(__xdiv64_32)
-#ifdef __LITTLE_ENDIAN__
+#ifdef CONFIG_CPU_LITTLE_ENDIAN
mov r4, r0
mov r5, r1
#else
@@ -34,7 +34,7 @@ ENTRY(__xdiv64_32)
rotcl r0
div1 r6, r1
.endr
-#ifdef __LITTLE_ENDIAN__
+#ifdef CONFIG_CPU_LITTLE_ENDIAN
mov r2, r1
rts
rotcl r0
OpenPOWER on IntegriCloud