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>
16 #include <linux/ioctl32.h>
18 #include <asm/semaphore.h>
19 #include <asm/processor.h>
21 #include <asm/uaccess.h>
22 #include <asm/checksum.h>
24 #include <asm/delay.h>
28 #include <asm/pgtable.h>
29 #include <asm/pgalloc.h>
31 #include <asm/kdebug.h>
32 #include <asm/unistd.h>
33 #include <asm/tlbflush.h>
34 #include <asm/kdebug.h>
36 extern spinlock_t rtc_lock
;
39 extern void __write_lock_failed(rwlock_t
*rw
);
40 extern void __read_lock_failed(rwlock_t
*rw
);
43 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
44 extern struct drive_info_struct drive_info
;
45 EXPORT_SYMBOL(drive_info
);
48 extern unsigned long get_cmos_time(void);
50 /* platform dependent support */
51 EXPORT_SYMBOL(boot_cpu_data
);
52 //EXPORT_SYMBOL(dump_fpu);
53 EXPORT_SYMBOL(__ioremap
);
54 EXPORT_SYMBOL(ioremap_nocache
);
55 EXPORT_SYMBOL(iounmap
);
56 EXPORT_SYMBOL(enable_irq
);
57 EXPORT_SYMBOL(disable_irq
);
58 EXPORT_SYMBOL(disable_irq_nosync
);
59 EXPORT_SYMBOL(probe_irq_mask
);
60 EXPORT_SYMBOL(kernel_thread
);
61 EXPORT_SYMBOL(pm_idle
);
62 EXPORT_SYMBOL(pm_power_off
);
63 EXPORT_SYMBOL(get_cmos_time
);
65 EXPORT_SYMBOL(__down_failed
);
66 EXPORT_SYMBOL(__down_failed_interruptible
);
67 EXPORT_SYMBOL(__down_failed_trylock
);
68 EXPORT_SYMBOL(__up_wakeup
);
69 /* Networking helper routines. */
70 EXPORT_SYMBOL(csum_partial_copy_nocheck
);
71 EXPORT_SYMBOL(ip_compute_csum
);
73 EXPORT_SYMBOL(__udelay
);
74 EXPORT_SYMBOL(__ndelay
);
75 EXPORT_SYMBOL(__delay
);
76 EXPORT_SYMBOL(__const_udelay
);
78 EXPORT_SYMBOL(__get_user_1
);
79 EXPORT_SYMBOL(__get_user_2
);
80 EXPORT_SYMBOL(__get_user_4
);
81 EXPORT_SYMBOL(__get_user_8
);
82 EXPORT_SYMBOL(__put_user_1
);
83 EXPORT_SYMBOL(__put_user_2
);
84 EXPORT_SYMBOL(__put_user_4
);
85 EXPORT_SYMBOL(__put_user_8
);
87 EXPORT_SYMBOL(strpbrk
);
88 EXPORT_SYMBOL(strstr
);
90 EXPORT_SYMBOL(strncpy_from_user
);
91 EXPORT_SYMBOL(__strncpy_from_user
);
92 EXPORT_SYMBOL(clear_user
);
93 EXPORT_SYMBOL(__clear_user
);
94 EXPORT_SYMBOL(copy_user_generic
);
95 EXPORT_SYMBOL(copy_from_user
);
96 EXPORT_SYMBOL(copy_to_user
);
97 EXPORT_SYMBOL(copy_in_user
);
98 EXPORT_SYMBOL(strnlen_user
);
101 EXPORT_SYMBOL(pci_alloc_consistent
);
102 EXPORT_SYMBOL(pci_free_consistent
);
106 EXPORT_SYMBOL(pci_mem_start
);
109 EXPORT_SYMBOL(copy_page
);
110 EXPORT_SYMBOL(clear_page
);
112 EXPORT_SYMBOL(cpu_pda
);
114 EXPORT_SYMBOL(cpu_data
);
115 EXPORT_SYMBOL(cpu_online_map
);
116 EXPORT_SYMBOL(__write_lock_failed
);
117 EXPORT_SYMBOL(__read_lock_failed
);
119 EXPORT_SYMBOL(synchronize_irq
);
120 EXPORT_SYMBOL(smp_call_function
);
121 EXPORT_SYMBOL(cpu_callout_map
);
125 EXPORT_SYMBOL(screen_info
);
128 EXPORT_SYMBOL(get_wchan
);
130 EXPORT_SYMBOL(rtc_lock
);
132 EXPORT_SYMBOL_GPL(set_nmi_callback
);
133 EXPORT_SYMBOL_GPL(unset_nmi_callback
);
135 /* Export string functions. We normally rely on gcc builtin for most of these,
136 but gcc sometimes decides not to inline them. */
146 extern void * memset(void *,int,__kernel_size_t
);
147 extern size_t strlen(const char *);
148 extern void * memmove(void * dest
,const void *src
,size_t count
);
149 extern void *memchr(const void *s
, int c
, size_t n
);
150 extern void * memcpy(void *,const void *,__kernel_size_t
);
151 extern void * __memcpy(void *,const void *,__kernel_size_t
);
153 EXPORT_SYMBOL(memset
);
154 EXPORT_SYMBOL(strlen
);
155 EXPORT_SYMBOL(memmove
);
156 EXPORT_SYMBOL(strncmp
);
157 EXPORT_SYMBOL(strncpy
);
158 EXPORT_SYMBOL(strchr
);
159 EXPORT_SYMBOL(strncat
);
160 EXPORT_SYMBOL(memchr
);
161 EXPORT_SYMBOL(strrchr
);
162 EXPORT_SYMBOL(strnlen
);
163 EXPORT_SYMBOL(memscan
);
164 EXPORT_SYMBOL(memcpy
);
165 EXPORT_SYMBOL(__memcpy
);
167 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
168 /* prototypes are wrong, these are assembly with custom calling functions */
169 extern void rwsem_down_read_failed_thunk(void);
170 extern void rwsem_wake_thunk(void);
171 extern void rwsem_downgrade_thunk(void);
172 extern void rwsem_down_write_failed_thunk(void);
173 EXPORT_SYMBOL(rwsem_down_read_failed_thunk
);
174 EXPORT_SYMBOL(rwsem_wake_thunk
);
175 EXPORT_SYMBOL(rwsem_downgrade_thunk
);
176 EXPORT_SYMBOL(rwsem_down_write_failed_thunk
);
179 EXPORT_SYMBOL(empty_zero_page
);
181 #ifdef CONFIG_HAVE_DEC_LOCK
182 EXPORT_SYMBOL(_atomic_dec_and_lock
);
185 EXPORT_SYMBOL(die_chain
);
186 EXPORT_SYMBOL(register_die_notifier
);
189 EXPORT_SYMBOL(cpu_sibling_map
);
190 EXPORT_SYMBOL(smp_num_siblings
);
193 extern void do_softirq_thunk(void);
194 EXPORT_SYMBOL(do_softirq_thunk
);
196 void out_of_line_bug(void);
197 EXPORT_SYMBOL(out_of_line_bug
);
199 EXPORT_SYMBOL(init_level4_pgt
);
201 extern unsigned long __supported_pte_mask
;
202 EXPORT_SYMBOL(__supported_pte_mask
);
205 EXPORT_SYMBOL(flush_tlb_page
);
208 EXPORT_SYMBOL(cpu_khz
);