blob: c446591b961ddc7d922ead4be15e58ae94158687 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
Mike Frysinger0f8befa2008-10-28 11:12:17 +08002 * arch/blackfin/kernel/bfin_ksyms.c - exports for random symbols
Bryan Wu1394f032007-05-06 14:50:22 -07003 *
Mike Frysinger0f8befa2008-10-28 11:12:17 +08004 * Copyright 2004-2008 Analog Devices Inc.
Bryan Wu1394f032007-05-06 14:50:22 -07005 *
Mike Frysinger0f8befa2008-10-28 11:12:17 +08006 * Licensed under the GPL-2 or later.
Bryan Wu1394f032007-05-06 14:50:22 -07007 */
8
9#include <linux/module.h>
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080010#include <linux/uaccess.h>
11
Bryan Wu1394f032007-05-06 14:50:22 -070012#include <asm/cacheflush.h>
Mike Frysingerabea0bc2009-06-13 10:35:10 -040013#include <asm/io.h>
Mike Frysinger6327a572011-04-15 03:06:59 -040014#include <asm/irq_handler.h>
Bryan Wu1394f032007-05-06 14:50:22 -070015
Mike Frysinger0f8befa2008-10-28 11:12:17 +080016/* Allow people to have their own Blackfin exception handler in a module */
Mike Frysinger8d6c2422007-11-21 15:53:49 +080017EXPORT_SYMBOL(bfin_return_from_exception);
Bryan Wu1394f032007-05-06 14:50:22 -070018
Mike Frysinger0f8befa2008-10-28 11:12:17 +080019/* All the Blackfin cache functions: mach-common/cache.S */
20EXPORT_SYMBOL(blackfin_dcache_invalidate_range);
Mike Frysinger0f8befa2008-10-28 11:12:17 +080021EXPORT_SYMBOL(blackfin_icache_flush_range);
22EXPORT_SYMBOL(blackfin_dcache_flush_range);
23EXPORT_SYMBOL(blackfin_dflush_page);
24
Bryan Wu1394f032007-05-06 14:50:22 -070025/* The following are special because they're not called
26 * explicitly (the C compiler generates them). Fortunately,
27 * their interface isn't gonna change any time soon now, so
28 * it's OK to leave it out of version control.
29 */
Bryan Wu1394f032007-05-06 14:50:22 -070030EXPORT_SYMBOL(memcpy);
31EXPORT_SYMBOL(memset);
32EXPORT_SYMBOL(memcmp);
33EXPORT_SYMBOL(memmove);
34EXPORT_SYMBOL(memchr);
Bryan Wu1394f032007-05-06 14:50:22 -070035
36/*
Robin Getz479ba602010-05-03 17:23:20 +000037 * Because string functions are both inline and exported functions and
38 * folder arch/blackfin/lib is configured as a library path in Makefile,
39 * symbols exported in folder lib is not linked into built-in.o but
40 * inlined only. In order to export string symbols to kernel module
41 * properly, they should be exported here.
42 */
43EXPORT_SYMBOL(strcpy);
44EXPORT_SYMBOL(strncpy);
45EXPORT_SYMBOL(strcmp);
46EXPORT_SYMBOL(strncmp);
47
48/*
Bryan Wu1394f032007-05-06 14:50:22 -070049 * libgcc functions - functions that are used internally by the
50 * compiler... (prototypes are not correct though, but that
51 * doesn't really matter since they're not versioned).
52 */
53extern void __ashldi3(void);
54extern void __ashrdi3(void);
55extern void __smulsi3_highpart(void);
56extern void __umulsi3_highpart(void);
57extern void __divsi3(void);
58extern void __lshrdi3(void);
59extern void __modsi3(void);
60extern void __muldi3(void);
61extern void __udivsi3(void);
62extern void __umodsi3(void);
Bryan Wu1394f032007-05-06 14:50:22 -070063EXPORT_SYMBOL(__ashldi3);
64EXPORT_SYMBOL(__ashrdi3);
65EXPORT_SYMBOL(__umulsi3_highpart);
66EXPORT_SYMBOL(__smulsi3_highpart);
67EXPORT_SYMBOL(__divsi3);
68EXPORT_SYMBOL(__lshrdi3);
69EXPORT_SYMBOL(__modsi3);
70EXPORT_SYMBOL(__muldi3);
71EXPORT_SYMBOL(__udivsi3);
72EXPORT_SYMBOL(__umodsi3);
73
Mike Frysinger0f8befa2008-10-28 11:12:17 +080074/* Input/output symbols: lib/{in,out}s.S */
Bryan Wu1394f032007-05-06 14:50:22 -070075EXPORT_SYMBOL(outsb);
76EXPORT_SYMBOL(insb);
77EXPORT_SYMBOL(outsw);
Michael Hennerich59069672008-05-17 16:38:52 +080078EXPORT_SYMBOL(outsw_8);
Bryan Wu1394f032007-05-06 14:50:22 -070079EXPORT_SYMBOL(insw);
Michael Hennerich59069672008-05-17 16:38:52 +080080EXPORT_SYMBOL(insw_8);
Bryan Wu1394f032007-05-06 14:50:22 -070081EXPORT_SYMBOL(outsl);
82EXPORT_SYMBOL(insl);
Michael Hennerich5c91fb92007-11-17 23:46:58 +080083EXPORT_SYMBOL(insl_16);
Graf Yang8f658732008-11-18 17:48:22 +080084
85#ifdef CONFIG_SMP
86EXPORT_SYMBOL(__raw_atomic_update_asm);
87EXPORT_SYMBOL(__raw_atomic_clear_asm);
88EXPORT_SYMBOL(__raw_atomic_set_asm);
89EXPORT_SYMBOL(__raw_atomic_xor_asm);
90EXPORT_SYMBOL(__raw_atomic_test_asm);
91EXPORT_SYMBOL(__raw_xchg_1_asm);
92EXPORT_SYMBOL(__raw_xchg_2_asm);
93EXPORT_SYMBOL(__raw_xchg_4_asm);
94EXPORT_SYMBOL(__raw_cmpxchg_1_asm);
95EXPORT_SYMBOL(__raw_cmpxchg_2_asm);
96EXPORT_SYMBOL(__raw_cmpxchg_4_asm);
97EXPORT_SYMBOL(__raw_spin_is_locked_asm);
98EXPORT_SYMBOL(__raw_spin_lock_asm);
99EXPORT_SYMBOL(__raw_spin_trylock_asm);
100EXPORT_SYMBOL(__raw_spin_unlock_asm);
101EXPORT_SYMBOL(__raw_read_lock_asm);
102EXPORT_SYMBOL(__raw_read_trylock_asm);
103EXPORT_SYMBOL(__raw_read_unlock_asm);
104EXPORT_SYMBOL(__raw_write_lock_asm);
105EXPORT_SYMBOL(__raw_write_trylock_asm);
106EXPORT_SYMBOL(__raw_write_unlock_asm);
107EXPORT_SYMBOL(__raw_bit_set_asm);
108EXPORT_SYMBOL(__raw_bit_clear_asm);
109EXPORT_SYMBOL(__raw_bit_toggle_asm);
110EXPORT_SYMBOL(__raw_bit_test_asm);
111EXPORT_SYMBOL(__raw_bit_test_set_asm);
112EXPORT_SYMBOL(__raw_bit_test_clear_asm);
113EXPORT_SYMBOL(__raw_bit_test_toggle_asm);
114EXPORT_SYMBOL(__raw_uncached_fetch_asm);
Graf Yangdbc895f2009-01-07 23:14:39 +0800115#ifdef __ARCH_SYNC_CORE_DCACHE
Graf Yang8f658732008-11-18 17:48:22 +0800116EXPORT_SYMBOL(__raw_smp_mark_barrier_asm);
117EXPORT_SYMBOL(__raw_smp_check_barrier_asm);
118#endif
Graf Yangdbc895f2009-01-07 23:14:39 +0800119#endif
Mike Frysinger1c873be2009-06-09 07:25:09 -0400120
121#ifdef CONFIG_FUNCTION_TRACER
122extern void _mcount(void);
123EXPORT_SYMBOL(_mcount);
124#endif