x8664_ksyms.c 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 <asm/semaphore.h>
  17. #include <asm/processor.h>
  18. #include <asm/i387.h>
  19. #include <asm/uaccess.h>
  20. #include <asm/checksum.h>
  21. #include <asm/io.h>
  22. #include <asm/delay.h>
  23. #include <asm/irq.h>
  24. #include <asm/mmx.h>
  25. #include <asm/desc.h>
  26. #include <asm/pgtable.h>
  27. #include <asm/pgalloc.h>
  28. #include <asm/nmi.h>
  29. #include <asm/kdebug.h>
  30. #include <asm/unistd.h>
  31. #include <asm/tlbflush.h>
  32. #include <asm/kdebug.h>
  33. extern spinlock_t rtc_lock;
  34. #ifdef CONFIG_SMP
  35. extern void __write_lock_failed(rwlock_t *rw);
  36. extern void __read_lock_failed(rwlock_t *rw);
  37. #endif
  38. #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
  39. extern struct drive_info_struct drive_info;
  40. EXPORT_SYMBOL(drive_info);
  41. #endif
  42. extern unsigned long get_cmos_time(void);
  43. /* platform dependent support */
  44. EXPORT_SYMBOL(boot_cpu_data);
  45. //EXPORT_SYMBOL(dump_fpu);
  46. EXPORT_SYMBOL(__ioremap);
  47. EXPORT_SYMBOL(ioremap_nocache);
  48. EXPORT_SYMBOL(iounmap);
  49. EXPORT_SYMBOL(kernel_thread);
  50. EXPORT_SYMBOL(pm_idle);
  51. EXPORT_SYMBOL(pm_power_off);
  52. EXPORT_SYMBOL(get_cmos_time);
  53. EXPORT_SYMBOL(__down_failed);
  54. EXPORT_SYMBOL(__down_failed_interruptible);
  55. EXPORT_SYMBOL(__down_failed_trylock);
  56. EXPORT_SYMBOL(__up_wakeup);
  57. /* Networking helper routines. */
  58. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  59. EXPORT_SYMBOL(ip_compute_csum);
  60. /* Delay loops */
  61. EXPORT_SYMBOL(__udelay);
  62. EXPORT_SYMBOL(__ndelay);
  63. EXPORT_SYMBOL(__delay);
  64. 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);
  73. EXPORT_SYMBOL(strncpy_from_user);
  74. EXPORT_SYMBOL(__strncpy_from_user);
  75. EXPORT_SYMBOL(clear_user);
  76. EXPORT_SYMBOL(__clear_user);
  77. EXPORT_SYMBOL(copy_user_generic);
  78. EXPORT_SYMBOL(copy_from_user);
  79. EXPORT_SYMBOL(copy_to_user);
  80. EXPORT_SYMBOL(copy_in_user);
  81. EXPORT_SYMBOL(strnlen_user);
  82. #ifdef CONFIG_PCI
  83. EXPORT_SYMBOL(pci_mem_start);
  84. #endif
  85. EXPORT_SYMBOL(copy_page);
  86. EXPORT_SYMBOL(clear_page);
  87. EXPORT_SYMBOL(_cpu_pda);
  88. #ifdef CONFIG_SMP
  89. EXPORT_SYMBOL(cpu_data);
  90. EXPORT_SYMBOL(__write_lock_failed);
  91. EXPORT_SYMBOL(__read_lock_failed);
  92. EXPORT_SYMBOL(smp_call_function);
  93. EXPORT_SYMBOL(cpu_callout_map);
  94. #endif
  95. #ifdef CONFIG_VT
  96. EXPORT_SYMBOL(screen_info);
  97. #endif
  98. EXPORT_SYMBOL(get_wchan);
  99. EXPORT_SYMBOL(rtc_lock);
  100. EXPORT_SYMBOL_GPL(set_nmi_callback);
  101. EXPORT_SYMBOL_GPL(unset_nmi_callback);
  102. /* Export string functions. We normally rely on gcc builtin for most of these,
  103. but gcc sometimes decides not to inline them. */
  104. #undef memcpy
  105. #undef memset
  106. #undef memmove
  107. #undef strlen
  108. extern void * memset(void *,int,__kernel_size_t);
  109. extern size_t strlen(const char *);
  110. extern void * memmove(void * dest,const void *src,size_t count);
  111. extern void * memcpy(void *,const void *,__kernel_size_t);
  112. extern void * __memcpy(void *,const void *,__kernel_size_t);
  113. EXPORT_SYMBOL(memset);
  114. EXPORT_SYMBOL(strlen);
  115. EXPORT_SYMBOL(memmove);
  116. EXPORT_SYMBOL(memcpy);
  117. EXPORT_SYMBOL(__memcpy);
  118. #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
  119. /* prototypes are wrong, these are assembly with custom calling functions */
  120. extern void rwsem_down_read_failed_thunk(void);
  121. extern void rwsem_wake_thunk(void);
  122. extern void rwsem_downgrade_thunk(void);
  123. extern void rwsem_down_write_failed_thunk(void);
  124. EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
  125. EXPORT_SYMBOL(rwsem_wake_thunk);
  126. EXPORT_SYMBOL(rwsem_downgrade_thunk);
  127. EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
  128. #endif
  129. EXPORT_SYMBOL(empty_zero_page);
  130. EXPORT_SYMBOL(die_chain);
  131. EXPORT_SYMBOL(register_die_notifier);
  132. #ifdef CONFIG_SMP
  133. EXPORT_SYMBOL(cpu_sibling_map);
  134. EXPORT_SYMBOL(smp_num_siblings);
  135. #endif
  136. extern void do_softirq_thunk(void);
  137. EXPORT_SYMBOL(do_softirq_thunk);
  138. #ifdef CONFIG_BUG
  139. EXPORT_SYMBOL(out_of_line_bug);
  140. #endif
  141. EXPORT_SYMBOL(init_level4_pgt);
  142. extern unsigned long __supported_pte_mask;
  143. EXPORT_SYMBOL(__supported_pte_mask);
  144. #ifdef CONFIG_SMP
  145. EXPORT_SYMBOL(flush_tlb_page);
  146. #endif
  147. EXPORT_SYMBOL(cpu_khz);
  148. EXPORT_SYMBOL(load_gs_index);