Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bfin_ksyms.c
Go to the documentation of this file.
1 /*
2  * arch/blackfin/kernel/bfin_ksyms.c - exports for random symbols
3  *
4  * Copyright 2004-2008 Analog Devices Inc.
5  *
6  * Licensed under the GPL-2 or later.
7  */
8 
9 #include <linux/module.h>
10 #include <linux/uaccess.h>
11 
12 #include <asm/cacheflush.h>
13 #include <asm/io.h>
14 #include <asm/irq_handler.h>
15 
16 /* Allow people to have their own Blackfin exception handler in a module */
18 
19 /* All the Blackfin cache functions: mach-common/cache.S */
24 
25 /* 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  */
35 
36 /*
37  * 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  */
44 EXPORT_SYMBOL(strncpy);
47 
48 /*
49  * 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  */
53 extern void __ashldi3(void);
54 extern void __ashrdi3(void);
55 extern void __smulsi3_highpart(void);
56 extern void __umulsi3_highpart(void);
57 extern void __divsi3(void);
58 extern void __lshrdi3(void);
59 extern void __modsi3(void);
60 extern void __muldi3(void);
61 extern void __udivsi3(void);
62 extern void __umodsi3(void);
73 
74 /* Input/output symbols: lib/{in,out}s.S */
84 
85 #ifdef CONFIG_SMP
86 EXPORT_SYMBOL(__raw_atomic_update_asm);
87 EXPORT_SYMBOL(__raw_atomic_clear_asm);
88 EXPORT_SYMBOL(__raw_atomic_set_asm);
89 EXPORT_SYMBOL(__raw_atomic_xor_asm);
90 EXPORT_SYMBOL(__raw_atomic_test_asm);
91 EXPORT_SYMBOL(__raw_xchg_1_asm);
92 EXPORT_SYMBOL(__raw_xchg_2_asm);
93 EXPORT_SYMBOL(__raw_xchg_4_asm);
94 EXPORT_SYMBOL(__raw_cmpxchg_1_asm);
95 EXPORT_SYMBOL(__raw_cmpxchg_2_asm);
96 EXPORT_SYMBOL(__raw_cmpxchg_4_asm);
97 EXPORT_SYMBOL(__raw_spin_is_locked_asm);
98 EXPORT_SYMBOL(__raw_spin_lock_asm);
99 EXPORT_SYMBOL(__raw_spin_trylock_asm);
100 EXPORT_SYMBOL(__raw_spin_unlock_asm);
101 EXPORT_SYMBOL(__raw_read_lock_asm);
102 EXPORT_SYMBOL(__raw_read_trylock_asm);
103 EXPORT_SYMBOL(__raw_read_unlock_asm);
104 EXPORT_SYMBOL(__raw_write_lock_asm);
105 EXPORT_SYMBOL(__raw_write_trylock_asm);
106 EXPORT_SYMBOL(__raw_write_unlock_asm);
107 EXPORT_SYMBOL(__raw_bit_set_asm);
108 EXPORT_SYMBOL(__raw_bit_clear_asm);
109 EXPORT_SYMBOL(__raw_bit_toggle_asm);
110 EXPORT_SYMBOL(__raw_bit_test_asm);
111 EXPORT_SYMBOL(__raw_bit_test_set_asm);
112 EXPORT_SYMBOL(__raw_bit_test_clear_asm);
113 EXPORT_SYMBOL(__raw_bit_test_toggle_asm);
114 EXPORT_SYMBOL(__raw_uncached_fetch_asm);
115 #ifdef __ARCH_SYNC_CORE_DCACHE
116 EXPORT_SYMBOL(__raw_smp_mark_barrier_asm);
117 EXPORT_SYMBOL(__raw_smp_check_barrier_asm);
118 #endif
119 #endif
120 
121 #ifdef CONFIG_FUNCTION_TRACER
122 extern void _mcount(void);
124 #endif