ia64/xen-unstable

view linux-2.6-xen-sparse/arch/xen/x86_64/kernel/x8664_ksyms.c @ 7749:b8eaf192bad7

Enable export of set_nmi_callback in suitably priv 64-bit doms.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Nov 10 11:58:39 2005 +0100 (2005-11-10)
parents 3d27ee7da0c1
children 01a854cd8848
line source
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/smp.h>
4 #include <linux/user.h>
5 #include <linux/sched.h>
6 #include <linux/in6.h>
7 #include <linux/interrupt.h>
8 #include <linux/smp_lock.h>
9 #include <linux/pm.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>
20 #include <asm/i387.h>
21 #include <asm/uaccess.h>
22 #include <asm/checksum.h>
23 #include <asm/io.h>
24 #include <asm/delay.h>
25 #include <asm/irq.h>
26 #include <asm/mmx.h>
27 #include <asm/desc.h>
28 #include <asm/pgtable.h>
29 #include <asm/pgalloc.h>
30 #include <asm/nmi.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;
38 #ifdef CONFIG_SMP
39 extern void __write_lock_failed(rwlock_t *rw);
40 extern void __read_lock_failed(rwlock_t *rw);
41 #endif
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);
46 #endif
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 #ifdef CONFIG_ACPI_BOOT
63 EXPORT_SYMBOL(pm_power_off);
64 #endif
65 EXPORT_SYMBOL(get_cmos_time);
67 EXPORT_SYMBOL(__down_failed);
68 EXPORT_SYMBOL(__down_failed_interruptible);
69 EXPORT_SYMBOL(__down_failed_trylock);
70 EXPORT_SYMBOL(__up_wakeup);
71 /* Networking helper routines. */
72 EXPORT_SYMBOL(csum_partial_copy_nocheck);
73 EXPORT_SYMBOL(ip_compute_csum);
74 /* Delay loops */
75 EXPORT_SYMBOL(__udelay);
76 EXPORT_SYMBOL(__ndelay);
77 EXPORT_SYMBOL(__delay);
78 EXPORT_SYMBOL(__const_udelay);
80 EXPORT_SYMBOL(__get_user_1);
81 EXPORT_SYMBOL(__get_user_2);
82 EXPORT_SYMBOL(__get_user_4);
83 EXPORT_SYMBOL(__get_user_8);
84 EXPORT_SYMBOL(__put_user_1);
85 EXPORT_SYMBOL(__put_user_2);
86 EXPORT_SYMBOL(__put_user_4);
87 EXPORT_SYMBOL(__put_user_8);
89 EXPORT_SYMBOL(strpbrk);
90 EXPORT_SYMBOL(strstr);
92 EXPORT_SYMBOL(strncpy_from_user);
93 EXPORT_SYMBOL(__strncpy_from_user);
94 EXPORT_SYMBOL(clear_user);
95 EXPORT_SYMBOL(__clear_user);
96 EXPORT_SYMBOL(copy_user_generic);
97 EXPORT_SYMBOL(copy_from_user);
98 EXPORT_SYMBOL(copy_to_user);
99 EXPORT_SYMBOL(copy_in_user);
100 EXPORT_SYMBOL(strnlen_user);
102 #ifdef CONFIG_PCI
103 EXPORT_SYMBOL(pci_alloc_consistent);
104 EXPORT_SYMBOL(pci_free_consistent);
105 #endif
107 #ifdef CONFIG_PCI
108 EXPORT_SYMBOL(pci_mem_start);
109 #endif
111 EXPORT_SYMBOL(copy_page);
112 EXPORT_SYMBOL(clear_page);
114 EXPORT_SYMBOL(cpu_pda);
115 #ifdef CONFIG_SMP
116 EXPORT_SYMBOL(__write_lock_failed);
117 EXPORT_SYMBOL(__read_lock_failed);
119 EXPORT_SYMBOL(synchronize_irq);
120 EXPORT_SYMBOL(smp_call_function);
121 #endif
123 #ifdef CONFIG_VT
124 EXPORT_SYMBOL(screen_info);
125 #endif
127 EXPORT_SYMBOL(get_wchan);
129 EXPORT_SYMBOL(rtc_lock);
131 #ifdef CONFIG_X86_LOCAL_APIC
132 EXPORT_SYMBOL_GPL(set_nmi_callback);
133 EXPORT_SYMBOL_GPL(unset_nmi_callback);
134 #endif
136 /* Export string functions. We normally rely on gcc builtin for most of these,
137 but gcc sometimes decides not to inline them. */
138 #undef memcpy
139 #undef memset
140 #undef memmove
141 #undef memchr
142 #undef strlen
143 #undef strncmp
144 #undef strncpy
145 #undef strchr
147 extern void * memset(void *,int,__kernel_size_t);
148 extern size_t strlen(const char *);
149 extern void * memmove(void * dest,const void *src,size_t count);
150 extern void *memchr(const void *s, int c, size_t n);
151 extern void * memcpy(void *,const void *,__kernel_size_t);
152 extern void * __memcpy(void *,const void *,__kernel_size_t);
154 EXPORT_SYMBOL(memset);
155 EXPORT_SYMBOL(strlen);
156 EXPORT_SYMBOL(memmove);
157 EXPORT_SYMBOL(strncmp);
158 EXPORT_SYMBOL(strncpy);
159 EXPORT_SYMBOL(strchr);
160 EXPORT_SYMBOL(strncat);
161 EXPORT_SYMBOL(memchr);
162 EXPORT_SYMBOL(strrchr);
163 EXPORT_SYMBOL(strnlen);
164 EXPORT_SYMBOL(memscan);
165 EXPORT_SYMBOL(memcpy);
166 EXPORT_SYMBOL(__memcpy);
168 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
169 /* prototypes are wrong, these are assembly with custom calling functions */
170 extern void rwsem_down_read_failed_thunk(void);
171 extern void rwsem_wake_thunk(void);
172 extern void rwsem_downgrade_thunk(void);
173 extern void rwsem_down_write_failed_thunk(void);
174 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
175 EXPORT_SYMBOL(rwsem_wake_thunk);
176 EXPORT_SYMBOL(rwsem_downgrade_thunk);
177 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
178 #endif
180 EXPORT_SYMBOL(empty_zero_page);
182 #ifdef CONFIG_HAVE_DEC_LOCK
183 EXPORT_SYMBOL(_atomic_dec_and_lock);
184 #endif
186 EXPORT_SYMBOL(die_chain);
187 EXPORT_SYMBOL(register_die_notifier);
189 #ifdef CONFIG_SMP
190 EXPORT_SYMBOL(cpu_sibling_map);
191 EXPORT_SYMBOL(smp_num_siblings);
192 #endif
194 extern void do_softirq_thunk(void);
195 EXPORT_SYMBOL(do_softirq_thunk);
197 #ifdef CONFIG_BUG
198 EXPORT_SYMBOL(out_of_line_bug);
199 #endif
201 EXPORT_SYMBOL(init_level4_pgt);
203 extern unsigned long __supported_pte_mask;
204 EXPORT_SYMBOL(__supported_pte_mask);
206 #ifdef CONFIG_SMP
207 EXPORT_SYMBOL(flush_tlb_page);
208 #endif
210 EXPORT_SYMBOL(cpu_khz);