summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-11-20 15:26:35 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 18:42:54 +0900
commit9ef100287afa8e134de50258b8382cbc9d20f954 (patch)
tree592d0717548ac36144de9643014c1cf4bd54e31b /arch
parent16b529d1d78060254d5bc735390915ca5ccf13a1 (diff)
downloadop-kernel-dev-9ef100287afa8e134de50258b8382cbc9d20f954.zip
op-kernel-dev-9ef100287afa8e134de50258b8382cbc9d20f954.tar.gz
sh: Add exports for __udivsi3/__sdivsi3 and the _i4 versions.
Needed by older compilers. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/sh_ksyms_32.c4
-rw-r--r--arch/sh/lib/udivsi3-Os.S4
-rw-r--r--arch/sh/lib/udivsi3.S4
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c
index 9c5ae7b..490c402 100644
--- a/arch/sh/kernel/sh_ksyms_32.c
+++ b/arch/sh/kernel/sh_ksyms_32.c
@@ -53,6 +53,8 @@ EXPORT_SYMBOL(__const_udelay);
#define DECLARE_EXPORT(name) \
extern void name(void);EXPORT_SYMBOL(name)
+DECLARE_EXPORT(__udivsi3);
+DECLARE_EXPORT(__sdivsi3);
DECLARE_EXPORT(__lshrsi3);
DECLARE_EXPORT(__ashrsi3);
DECLARE_EXPORT(__ashlsi3);
@@ -92,6 +94,8 @@ DECLARE_EXPORT(__movstr_i4_even);
DECLARE_EXPORT(__movstr_i4_odd);
DECLARE_EXPORT(__movstrSI12_i4);
DECLARE_EXPORT(__udiv_qrnnd_16);
+DECLARE_EXPORT(__sdivsi3_i4);
+DECLARE_EXPORT(__udivsi3_i4);
DECLARE_EXPORT(__sdivsi3_i4i);
DECLARE_EXPORT(__udivsi3_i4i);
diff --git a/arch/sh/lib/udivsi3-Os.S b/arch/sh/lib/udivsi3-Os.S
index 2bed765..110c5ea 100644
--- a/arch/sh/lib/udivsi3-Os.S
+++ b/arch/sh/lib/udivsi3-Os.S
@@ -40,7 +40,9 @@ Boston, MA 02110-1301, USA. */
of two more cycles. */
.balign 4
.global __udivsi3_i4i
+ .global __udivsi3_i4
.global __udivsi3
+ .set __udivsi3_i4, __udivsi3_i4i
.set __udivsi3, __udivsi3_i4i
.type __udivsi3_i4i, @function
.type __sdivsi3_i4i, @function
@@ -105,7 +107,9 @@ sdiv_large_divisor:
rotcl r0
.global __sdivsi3_i4i
+ .global __sdivsi3_i4
.global __sdivsi3
+ .set __sdivsi3_i4, __sdivsi3_i4i
.set __sdivsi3, __sdivsi3_i4i
__sdivsi3_i4i:
mov.l r4,@-r15
diff --git a/arch/sh/lib/udivsi3.S b/arch/sh/lib/udivsi3.S
index a810fc6..388e15d 100644
--- a/arch/sh/lib/udivsi3.S
+++ b/arch/sh/lib/udivsi3.S
@@ -56,7 +56,9 @@ Boston, MA 02110-1301, USA. */
.balign 4
.global __udivsi3_i4i
+ .global __udivsi3_i4
.global __udivsi3
+ .set __udivsi3_i4, __udivsi3_i4i
.set __udivsi3, __udivsi3_i4i
.type __udivsi3_i4i, @function
__udivsi3_i4i:
@@ -174,7 +176,9 @@ div_r8_2:
rotcl r0
.global __sdivsi3_i4i
+ .global __sdivsi3_i4
.global __sdivsi3
+ .set __sdivsi3_i4, __sdivsi3_i4i
.set __sdivsi3, __sdivsi3_i4i
.type __sdivsi3_i4i, @function
/* This is link-compatible with a __sdivsi3 call,
OpenPOWER on IntegriCloud