aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/sparc_ksyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/sparc_ksyms.c')
-rw-r--r--arch/sparc/kernel/sparc_ksyms.c41
1 files changed, 12 insertions, 29 deletions
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c
index 1bd430d0ca06..1c8fd0fd9305 100644
--- a/arch/sparc/kernel/sparc_ksyms.c
+++ b/arch/sparc/kernel/sparc_ksyms.c
@@ -97,33 +97,17 @@ extern void ___rw_write_enter(void);
97/* Alias functions whose names begin with "." and export the aliases. 97/* Alias functions whose names begin with "." and export the aliases.
98 * The module references will be fixed up by module_frob_arch_sections. 98 * The module references will be fixed up by module_frob_arch_sections.
99 */ 99 */
100#define DOT_ALIAS2(__ret, __x, __arg1, __arg2) \ 100extern int _Div(int, int);
101 extern __ret __x(__arg1, __arg2) \ 101extern int _Mul(int, int);
102 __attribute__((weak, alias("." # __x))); 102extern int _Rem(int, int);
103 103extern unsigned _Udiv(unsigned, unsigned);
104DOT_ALIAS2(int, div, int, int) 104extern unsigned _Umul(unsigned, unsigned);
105DOT_ALIAS2(int, mul, int, int) 105extern unsigned _Urem(unsigned, unsigned);
106DOT_ALIAS2(int, rem, int, int)
107DOT_ALIAS2(unsigned, udiv, unsigned, unsigned)
108DOT_ALIAS2(unsigned, umul, unsigned, unsigned)
109DOT_ALIAS2(unsigned, urem, unsigned, unsigned)
110
111#undef DOT_ALIAS2
112 106
113/* used by various drivers */ 107/* used by various drivers */
114EXPORT_SYMBOL(sparc_cpu_model); 108EXPORT_SYMBOL(sparc_cpu_model);
115EXPORT_SYMBOL(kernel_thread); 109EXPORT_SYMBOL(kernel_thread);
116#ifdef CONFIG_DEBUG_SPINLOCK
117#ifdef CONFIG_SMP 110#ifdef CONFIG_SMP
118EXPORT_SYMBOL(_do_spin_lock);
119EXPORT_SYMBOL(_do_spin_unlock);
120EXPORT_SYMBOL(_spin_trylock);
121EXPORT_SYMBOL(_do_read_lock);
122EXPORT_SYMBOL(_do_read_unlock);
123EXPORT_SYMBOL(_do_write_lock);
124EXPORT_SYMBOL(_do_write_unlock);
125#endif
126#else
127// XXX find what uses (or used) these. 111// XXX find what uses (or used) these.
128EXPORT_SYMBOL(___rw_read_enter); 112EXPORT_SYMBOL(___rw_read_enter);
129EXPORT_SYMBOL(___rw_read_exit); 113EXPORT_SYMBOL(___rw_read_exit);
@@ -174,7 +158,6 @@ EXPORT_SYMBOL(set_auxio);
174EXPORT_SYMBOL(get_auxio); 158EXPORT_SYMBOL(get_auxio);
175#endif 159#endif
176EXPORT_SYMBOL(request_fast_irq); 160EXPORT_SYMBOL(request_fast_irq);
177EXPORT_SYMBOL(io_remap_page_range);
178EXPORT_SYMBOL(io_remap_pfn_range); 161EXPORT_SYMBOL(io_remap_pfn_range);
179 /* P3: iounit_xxx may be needed, sun4d users */ 162 /* P3: iounit_xxx may be needed, sun4d users */
180/* EXPORT_SYMBOL(iounit_map_dma_init); */ 163/* EXPORT_SYMBOL(iounit_map_dma_init); */
@@ -330,12 +313,12 @@ EXPORT_SYMBOL(__lshrdi3);
330EXPORT_SYMBOL(__muldi3); 313EXPORT_SYMBOL(__muldi3);
331EXPORT_SYMBOL(__divdi3); 314EXPORT_SYMBOL(__divdi3);
332 315
333EXPORT_SYMBOL(rem); 316EXPORT_SYMBOL(_Rem);
334EXPORT_SYMBOL(urem); 317EXPORT_SYMBOL(_Urem);
335EXPORT_SYMBOL(mul); 318EXPORT_SYMBOL(_Mul);
336EXPORT_SYMBOL(umul); 319EXPORT_SYMBOL(_Umul);
337EXPORT_SYMBOL(div); 320EXPORT_SYMBOL(_Div);
338EXPORT_SYMBOL(udiv); 321EXPORT_SYMBOL(_Udiv);
339 322
340#ifdef CONFIG_DEBUG_BUGVERBOSE 323#ifdef CONFIG_DEBUG_BUGVERBOSE
341EXPORT_SYMBOL(do_BUG); 324EXPORT_SYMBOL(do_BUG);