aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-11-20 01:26:35 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:42:54 -0500
commit9ef100287afa8e134de50258b8382cbc9d20f954 (patch)
tree592d0717548ac36144de9643014c1cf4bd54e31b /arch
parent16b529d1d78060254d5bc735390915ca5ccf13a1 (diff)
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 9c5ae7b9cd98..490c40218ed7 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);
53#define DECLARE_EXPORT(name) \ 53#define DECLARE_EXPORT(name) \
54 extern void name(void);EXPORT_SYMBOL(name) 54 extern void name(void);EXPORT_SYMBOL(name)
55 55
56DECLARE_EXPORT(__udivsi3);
57DECLARE_EXPORT(__sdivsi3);
56DECLARE_EXPORT(__lshrsi3); 58DECLARE_EXPORT(__lshrsi3);
57DECLARE_EXPORT(__ashrsi3); 59DECLARE_EXPORT(__ashrsi3);
58DECLARE_EXPORT(__ashlsi3); 60DECLARE_EXPORT(__ashlsi3);
@@ -92,6 +94,8 @@ DECLARE_EXPORT(__movstr_i4_even);
92DECLARE_EXPORT(__movstr_i4_odd); 94DECLARE_EXPORT(__movstr_i4_odd);
93DECLARE_EXPORT(__movstrSI12_i4); 95DECLARE_EXPORT(__movstrSI12_i4);
94DECLARE_EXPORT(__udiv_qrnnd_16); 96DECLARE_EXPORT(__udiv_qrnnd_16);
97DECLARE_EXPORT(__sdivsi3_i4);
98DECLARE_EXPORT(__udivsi3_i4);
95DECLARE_EXPORT(__sdivsi3_i4i); 99DECLARE_EXPORT(__sdivsi3_i4i);
96DECLARE_EXPORT(__udivsi3_i4i); 100DECLARE_EXPORT(__udivsi3_i4i);
97 101
diff --git a/arch/sh/lib/udivsi3-Os.S b/arch/sh/lib/udivsi3-Os.S
index 2bed76587f1e..110c5ea769e0 100644
--- a/arch/sh/lib/udivsi3-Os.S
+++ b/arch/sh/lib/udivsi3-Os.S
@@ -40,7 +40,9 @@ Boston, MA 02110-1301, USA. */
40 of two more cycles. */ 40 of two more cycles. */
41 .balign 4 41 .balign 4
42 .global __udivsi3_i4i 42 .global __udivsi3_i4i
43 .global __udivsi3_i4
43 .global __udivsi3 44 .global __udivsi3
45 .set __udivsi3_i4, __udivsi3_i4i
44 .set __udivsi3, __udivsi3_i4i 46 .set __udivsi3, __udivsi3_i4i
45 .type __udivsi3_i4i, @function 47 .type __udivsi3_i4i, @function
46 .type __sdivsi3_i4i, @function 48 .type __sdivsi3_i4i, @function
@@ -105,7 +107,9 @@ sdiv_large_divisor:
105 rotcl r0 107 rotcl r0
106 108
107 .global __sdivsi3_i4i 109 .global __sdivsi3_i4i
110 .global __sdivsi3_i4
108 .global __sdivsi3 111 .global __sdivsi3
112 .set __sdivsi3_i4, __sdivsi3_i4i
109 .set __sdivsi3, __sdivsi3_i4i 113 .set __sdivsi3, __sdivsi3_i4i
110__sdivsi3_i4i: 114__sdivsi3_i4i:
111 mov.l r4,@-r15 115 mov.l r4,@-r15
diff --git a/arch/sh/lib/udivsi3.S b/arch/sh/lib/udivsi3.S
index a810fc6f21d5..388e15d75193 100644
--- a/arch/sh/lib/udivsi3.S
+++ b/arch/sh/lib/udivsi3.S
@@ -56,7 +56,9 @@ Boston, MA 02110-1301, USA. */
56 56
57 .balign 4 57 .balign 4
58 .global __udivsi3_i4i 58 .global __udivsi3_i4i
59 .global __udivsi3_i4
59 .global __udivsi3 60 .global __udivsi3
61 .set __udivsi3_i4, __udivsi3_i4i
60 .set __udivsi3, __udivsi3_i4i 62 .set __udivsi3, __udivsi3_i4i
61 .type __udivsi3_i4i, @function 63 .type __udivsi3_i4i, @function
62__udivsi3_i4i: 64__udivsi3_i4i:
@@ -174,7 +176,9 @@ div_r8_2:
174 rotcl r0 176 rotcl r0
175 177
176 .global __sdivsi3_i4i 178 .global __sdivsi3_i4i
179 .global __sdivsi3_i4
177 .global __sdivsi3 180 .global __sdivsi3
181 .set __sdivsi3_i4, __sdivsi3_i4i
178 .set __sdivsi3, __sdivsi3_i4i 182 .set __sdivsi3, __sdivsi3_i4i
179 .type __sdivsi3_i4i, @function 183 .type __sdivsi3_i4i, @function
180 /* This is link-compatible with a __sdivsi3 call, 184 /* This is link-compatible with a __sdivsi3 call,