Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #include <linux/module.h> |
| 2 | #include <linux/linkage.h> |
| 3 | #include <linux/sched.h> |
| 4 | #include <linux/string.h> |
| 5 | #include <linux/mm.h> |
| 6 | #include <linux/user.h> |
| 7 | #include <linux/elfcore.h> |
| 8 | #include <linux/in6.h> |
| 9 | #include <linux/interrupt.h> |
| 10 | #include <linux/config.h> |
| 11 | |
| 12 | #include <asm/setup.h> |
| 13 | #include <asm/pgalloc.h> |
| 14 | #include <asm/irq.h> |
| 15 | #include <asm/io.h> |
| 16 | #include <asm/semaphore.h> |
| 17 | #include <asm/checksum.h> |
| 18 | #include <asm/hardirq.h> |
| 19 | #include <asm/current.h> |
| 20 | |
| 21 | extern void dump_thread(struct pt_regs *, struct user *); |
| 22 | extern long __memcpy_user(void *dst, const void *src, size_t count); |
| 23 | |
| 24 | /* platform dependent support */ |
| 25 | |
| 26 | EXPORT_SYMBOL(__ioremap); |
| 27 | EXPORT_SYMBOL(iounmap); |
| 28 | |
| 29 | EXPORT_SYMBOL(dump_thread); |
| 30 | EXPORT_SYMBOL(strnlen); |
| 31 | EXPORT_SYMBOL(strrchr); |
| 32 | EXPORT_SYMBOL(strstr); |
| 33 | EXPORT_SYMBOL(strchr); |
| 34 | EXPORT_SYMBOL(strcat); |
| 35 | EXPORT_SYMBOL(strlen); |
| 36 | EXPORT_SYMBOL(strcmp); |
| 37 | EXPORT_SYMBOL(strncmp); |
| 38 | EXPORT_SYMBOL(strncpy); |
| 39 | |
| 40 | EXPORT_SYMBOL(ip_fast_csum); |
| 41 | |
| 42 | #if 0 |
| 43 | EXPORT_SYMBOL(local_irq_count); |
| 44 | EXPORT_SYMBOL(local_bh_count); |
| 45 | #endif |
| 46 | EXPORT_SYMBOL(kernel_thread); |
| 47 | |
| 48 | EXPORT_SYMBOL(enable_irq); |
| 49 | EXPORT_SYMBOL(disable_irq); |
| 50 | EXPORT_SYMBOL(__res_bus_clock_speed_HZ); |
| 51 | EXPORT_SYMBOL(__page_offset); |
| 52 | EXPORT_SYMBOL(__memcpy_user); |
| 53 | EXPORT_SYMBOL(flush_dcache_page); |
| 54 | |
| 55 | #ifndef CONFIG_MMU |
| 56 | EXPORT_SYMBOL(memory_start); |
| 57 | EXPORT_SYMBOL(memory_end); |
| 58 | #endif |
| 59 | |
| 60 | EXPORT_SYMBOL(__debug_bug_trap); |
| 61 | |
| 62 | /* Networking helper routines. */ |
| 63 | EXPORT_SYMBOL(csum_partial_copy); |
| 64 | |
| 65 | /* The following are special because they're not called |
| 66 | explicitly (the C compiler generates them). Fortunately, |
| 67 | their interface isn't gonna change any time soon now, so |
| 68 | it's OK to leave it out of version control. */ |
| 69 | EXPORT_SYMBOL(memcpy); |
| 70 | EXPORT_SYMBOL(memset); |
| 71 | EXPORT_SYMBOL(memcmp); |
| 72 | EXPORT_SYMBOL(memscan); |
| 73 | EXPORT_SYMBOL(memmove); |
| 74 | EXPORT_SYMBOL(strtok); |
| 75 | |
| 76 | EXPORT_SYMBOL(get_wchan); |
| 77 | |
| 78 | #ifdef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS |
| 79 | EXPORT_SYMBOL(atomic_test_and_ANDNOT_mask); |
| 80 | EXPORT_SYMBOL(atomic_test_and_OR_mask); |
| 81 | EXPORT_SYMBOL(atomic_test_and_XOR_mask); |
| 82 | EXPORT_SYMBOL(atomic_add_return); |
| 83 | EXPORT_SYMBOL(atomic_sub_return); |
| 84 | EXPORT_SYMBOL(__xchg_8); |
| 85 | EXPORT_SYMBOL(__xchg_16); |
| 86 | EXPORT_SYMBOL(__xchg_32); |
| 87 | EXPORT_SYMBOL(__cmpxchg_8); |
| 88 | EXPORT_SYMBOL(__cmpxchg_16); |
| 89 | EXPORT_SYMBOL(__cmpxchg_32); |
| 90 | #endif |
| 91 | |
| 92 | /* |
| 93 | * libgcc functions - functions that are used internally by the |
| 94 | * compiler... (prototypes are not correct though, but that |
| 95 | * doesn't really matter since they're not versioned). |
| 96 | */ |
| 97 | extern void __gcc_bcmp(void); |
| 98 | extern void __ashldi3(void); |
| 99 | extern void __ashrdi3(void); |
| 100 | extern void __cmpdi2(void); |
| 101 | extern void __divdi3(void); |
| 102 | extern void __lshrdi3(void); |
| 103 | extern void __moddi3(void); |
| 104 | extern void __muldi3(void); |
| 105 | extern void __negdi2(void); |
| 106 | extern void __ucmpdi2(void); |
| 107 | extern void __udivdi3(void); |
| 108 | extern void __udivmoddi4(void); |
| 109 | extern void __umoddi3(void); |
| 110 | |
| 111 | /* gcc lib functions */ |
| 112 | //EXPORT_SYMBOL(__gcc_bcmp); |
| 113 | EXPORT_SYMBOL(__ashldi3); |
| 114 | EXPORT_SYMBOL(__ashrdi3); |
| 115 | //EXPORT_SYMBOL(__cmpdi2); |
| 116 | //EXPORT_SYMBOL(__divdi3); |
| 117 | EXPORT_SYMBOL(__lshrdi3); |
| 118 | //EXPORT_SYMBOL(__moddi3); |
| 119 | EXPORT_SYMBOL(__muldi3); |
| 120 | EXPORT_SYMBOL(__negdi2); |
| 121 | //EXPORT_SYMBOL(__ucmpdi2); |
| 122 | //EXPORT_SYMBOL(__udivdi3); |
| 123 | //EXPORT_SYMBOL(__udivmoddi4); |
| 124 | //EXPORT_SYMBOL(__umoddi3); |