diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-11-20 01:26:35 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 04:42:54 -0500 |
commit | 9ef100287afa8e134de50258b8382cbc9d20f954 (patch) | |
tree | 592d0717548ac36144de9643014c1cf4bd54e31b | |
parent | 16b529d1d78060254d5bc735390915ca5ccf13a1 (diff) |
sh: Add exports for __udivsi3/__sdivsi3 and the _i4 versions.
Needed by older compilers.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/sh_ksyms_32.c | 4 | ||||
-rw-r--r-- | arch/sh/lib/udivsi3-Os.S | 4 | ||||
-rw-r--r-- | arch/sh/lib/udivsi3.S | 4 |
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 | ||
56 | DECLARE_EXPORT(__udivsi3); | ||
57 | DECLARE_EXPORT(__sdivsi3); | ||
56 | DECLARE_EXPORT(__lshrsi3); | 58 | DECLARE_EXPORT(__lshrsi3); |
57 | DECLARE_EXPORT(__ashrsi3); | 59 | DECLARE_EXPORT(__ashrsi3); |
58 | DECLARE_EXPORT(__ashlsi3); | 60 | DECLARE_EXPORT(__ashlsi3); |
@@ -92,6 +94,8 @@ DECLARE_EXPORT(__movstr_i4_even); | |||
92 | DECLARE_EXPORT(__movstr_i4_odd); | 94 | DECLARE_EXPORT(__movstr_i4_odd); |
93 | DECLARE_EXPORT(__movstrSI12_i4); | 95 | DECLARE_EXPORT(__movstrSI12_i4); |
94 | DECLARE_EXPORT(__udiv_qrnnd_16); | 96 | DECLARE_EXPORT(__udiv_qrnnd_16); |
97 | DECLARE_EXPORT(__sdivsi3_i4); | ||
98 | DECLARE_EXPORT(__udivsi3_i4); | ||
95 | DECLARE_EXPORT(__sdivsi3_i4i); | 99 | DECLARE_EXPORT(__sdivsi3_i4i); |
96 | DECLARE_EXPORT(__udivsi3_i4i); | 100 | DECLARE_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, |