1 #include <linux/config.h>
2 #include <linux/module.h>
4 #include <linux/user.h>
5 #include <linux/sched.h>
7 #include <linux/interrupt.h>
8 #include <linux/smp_lock.h>
10 #include <linux/pci.h>
11 #include <linux/apm_bios.h>
12 #include <linux/kernel.h>
13 #include <linux/string.h>
14 #include <linux/syscalls.h>
15 #include <linux/tty.h>
17 #include <asm/semaphore.h>
18 #include <asm/processor.h>
20 #include <asm/uaccess.h>
21 #include <asm/checksum.h>
23 #include <asm/delay.h>
27 #include <asm/pgtable.h>
28 #include <asm/pgalloc.h>
30 #include <asm/kdebug.h>
31 #include <asm/unistd.h>
32 #include <asm/tlbflush.h>
33 #include <asm/kdebug.h>
35 extern spinlock_t rtc_lock;
38 extern void __write_lock_failed(rwlock_t *rw);
39 extern void __read_lock_failed(rwlock_t *rw);
42 /* platform dependent support */
43 EXPORT_SYMBOL(boot_cpu_data);
44 //EXPORT_SYMBOL(dump_fpu);
45 EXPORT_SYMBOL(__ioremap);
46 EXPORT_SYMBOL(ioremap_nocache);
47 EXPORT_SYMBOL(iounmap);
48 EXPORT_SYMBOL(kernel_thread);
49 EXPORT_SYMBOL(pm_idle);
50 EXPORT_SYMBOL(pm_power_off);
52 EXPORT_SYMBOL(__down_failed);
53 EXPORT_SYMBOL(__down_failed_interruptible);
54 EXPORT_SYMBOL(__down_failed_trylock);
55 EXPORT_SYMBOL(__up_wakeup);
56 /* Networking helper routines. */
57 EXPORT_SYMBOL(csum_partial_copy_nocheck);
58 EXPORT_SYMBOL(ip_compute_csum);
60 EXPORT_SYMBOL(__udelay);
61 EXPORT_SYMBOL(__ndelay);
62 EXPORT_SYMBOL(__delay);
63 EXPORT_SYMBOL(__const_udelay);
65 EXPORT_SYMBOL(__get_user_1);
66 EXPORT_SYMBOL(__get_user_2);
67 EXPORT_SYMBOL(__get_user_4);
68 EXPORT_SYMBOL(__get_user_8);
69 EXPORT_SYMBOL(__put_user_1);
70 EXPORT_SYMBOL(__put_user_2);
71 EXPORT_SYMBOL(__put_user_4);
72 EXPORT_SYMBOL(__put_user_8);
74 EXPORT_SYMBOL(strncpy_from_user);
75 EXPORT_SYMBOL(__strncpy_from_user);
76 EXPORT_SYMBOL(clear_user);
77 EXPORT_SYMBOL(__clear_user);
78 EXPORT_SYMBOL(copy_user_generic);
79 EXPORT_SYMBOL(copy_from_user);
80 EXPORT_SYMBOL(copy_to_user);
81 EXPORT_SYMBOL(copy_in_user);
82 EXPORT_SYMBOL(strnlen_user);
85 EXPORT_SYMBOL(pci_mem_start);
88 EXPORT_SYMBOL(copy_page);
89 EXPORT_SYMBOL(clear_page);
91 EXPORT_SYMBOL(_cpu_pda);
93 EXPORT_SYMBOL(cpu_data);
94 EXPORT_SYMBOL(__write_lock_failed);
95 EXPORT_SYMBOL(__read_lock_failed);
97 EXPORT_SYMBOL(smp_call_function);
98 EXPORT_SYMBOL(cpu_callout_map);
102 EXPORT_SYMBOL(screen_info);
105 EXPORT_SYMBOL(get_wchan);
107 EXPORT_SYMBOL(rtc_lock);
109 EXPORT_SYMBOL_GPL(set_nmi_callback);
110 EXPORT_SYMBOL_GPL(unset_nmi_callback);
112 /* Export string functions. We normally rely on gcc builtin for most of these,
113 but gcc sometimes decides not to inline them. */
119 extern void * memset(void *,int,__kernel_size_t);
120 extern size_t strlen(const char *);
121 extern void * memmove(void * dest,const void *src,size_t count);
122 extern void * memcpy(void *,const void *,__kernel_size_t);
123 extern void * __memcpy(void *,const void *,__kernel_size_t);
125 EXPORT_SYMBOL(memset);
126 EXPORT_SYMBOL(strlen);
127 EXPORT_SYMBOL(strpbrk);
128 EXPORT_SYMBOL(memmove);
129 EXPORT_SYMBOL(memcpy);
130 EXPORT_SYMBOL(__memcpy);
132 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
133 /* prototypes are wrong, these are assembly with custom calling functions */
134 extern void rwsem_down_read_failed_thunk(void);
135 extern void rwsem_wake_thunk(void);
136 extern void rwsem_downgrade_thunk(void);
137 extern void rwsem_down_write_failed_thunk(void);
138 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
139 EXPORT_SYMBOL(rwsem_wake_thunk);
140 EXPORT_SYMBOL(rwsem_downgrade_thunk);
141 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
144 EXPORT_SYMBOL(empty_zero_page);
146 EXPORT_SYMBOL(die_chain);
149 EXPORT_SYMBOL(cpu_sibling_map);
150 EXPORT_SYMBOL(smp_num_siblings);
154 EXPORT_SYMBOL(out_of_line_bug);
157 EXPORT_SYMBOL(init_level4_pgt);
159 extern unsigned long __supported_pte_mask;
160 EXPORT_SYMBOL(__supported_pte_mask);
163 EXPORT_SYMBOL(flush_tlb_page);
166 EXPORT_SYMBOL(cpu_khz);
168 EXPORT_SYMBOL(load_gs_index);