ppc_ksyms.c 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. #include <linux/export.h>
  2. #include <linux/threads.h>
  3. #include <linux/smp.h>
  4. #include <linux/sched.h>
  5. #include <linux/elfcore.h>
  6. #include <linux/string.h>
  7. #include <linux/interrupt.h>
  8. #include <linux/screen_info.h>
  9. #include <linux/vt_kern.h>
  10. #include <linux/nvram.h>
  11. #include <linux/irq.h>
  12. #include <linux/pci.h>
  13. #include <linux/delay.h>
  14. #include <linux/bitops.h>
  15. #include <asm/page.h>
  16. #include <asm/processor.h>
  17. #include <asm/cacheflush.h>
  18. #include <asm/uaccess.h>
  19. #include <asm/io.h>
  20. #include <linux/atomic.h>
  21. #include <asm/checksum.h>
  22. #include <asm/pgtable.h>
  23. #include <asm/tlbflush.h>
  24. #include <linux/adb.h>
  25. #include <linux/cuda.h>
  26. #include <linux/pmu.h>
  27. #include <asm/prom.h>
  28. #include <asm/pci-bridge.h>
  29. #include <asm/irq.h>
  30. #include <asm/pmac_feature.h>
  31. #include <asm/dma.h>
  32. #include <asm/machdep.h>
  33. #include <asm/hw_irq.h>
  34. #include <asm/nvram.h>
  35. #include <asm/mmu_context.h>
  36. #include <asm/backlight.h>
  37. #include <asm/time.h>
  38. #include <asm/cputable.h>
  39. #include <asm/btext.h>
  40. #include <asm/div64.h>
  41. #include <asm/signal.h>
  42. #include <asm/dcr.h>
  43. #include <asm/ftrace.h>
  44. #include <asm/switch_to.h>
  45. #ifdef CONFIG_PPC32
  46. extern void transfer_to_handler(void);
  47. extern void do_IRQ(struct pt_regs *regs);
  48. extern void machine_check_exception(struct pt_regs *regs);
  49. extern void alignment_exception(struct pt_regs *regs);
  50. extern void program_check_exception(struct pt_regs *regs);
  51. extern void single_step_exception(struct pt_regs *regs);
  52. extern int sys_sigreturn(struct pt_regs *regs);
  53. EXPORT_SYMBOL(clear_pages);
  54. EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
  55. EXPORT_SYMBOL(DMA_MODE_READ);
  56. EXPORT_SYMBOL(DMA_MODE_WRITE);
  57. EXPORT_SYMBOL(transfer_to_handler);
  58. EXPORT_SYMBOL(do_IRQ);
  59. EXPORT_SYMBOL(machine_check_exception);
  60. EXPORT_SYMBOL(alignment_exception);
  61. EXPORT_SYMBOL(program_check_exception);
  62. EXPORT_SYMBOL(single_step_exception);
  63. EXPORT_SYMBOL(sys_sigreturn);
  64. #endif
  65. #ifdef CONFIG_FUNCTION_TRACER
  66. EXPORT_SYMBOL(_mcount);
  67. #endif
  68. EXPORT_SYMBOL(strcpy);
  69. EXPORT_SYMBOL(strncpy);
  70. EXPORT_SYMBOL(strcat);
  71. EXPORT_SYMBOL(strlen);
  72. EXPORT_SYMBOL(strcmp);
  73. EXPORT_SYMBOL(strncmp);
  74. EXPORT_SYMBOL(csum_partial);
  75. EXPORT_SYMBOL(csum_partial_copy_generic);
  76. EXPORT_SYMBOL(ip_fast_csum);
  77. EXPORT_SYMBOL(csum_tcpudp_magic);
  78. EXPORT_SYMBOL(__copy_tofrom_user);
  79. EXPORT_SYMBOL(__clear_user);
  80. EXPORT_SYMBOL(copy_page);
  81. #if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
  82. EXPORT_SYMBOL(isa_io_base);
  83. EXPORT_SYMBOL(isa_mem_base);
  84. EXPORT_SYMBOL(pci_dram_offset);
  85. #endif /* CONFIG_PCI */
  86. EXPORT_SYMBOL(start_thread);
  87. EXPORT_SYMBOL(kernel_thread);
  88. EXPORT_SYMBOL(giveup_fpu);
  89. #ifdef CONFIG_ALTIVEC
  90. EXPORT_SYMBOL(giveup_altivec);
  91. #endif /* CONFIG_ALTIVEC */
  92. #ifdef CONFIG_VSX
  93. EXPORT_SYMBOL(giveup_vsx);
  94. EXPORT_SYMBOL_GPL(__giveup_vsx);
  95. #endif /* CONFIG_VSX */
  96. #ifdef CONFIG_SPE
  97. EXPORT_SYMBOL(giveup_spe);
  98. #endif /* CONFIG_SPE */
  99. #ifndef CONFIG_PPC64
  100. EXPORT_SYMBOL(flush_instruction_cache);
  101. #endif
  102. EXPORT_SYMBOL(__flush_icache_range);
  103. EXPORT_SYMBOL(flush_dcache_range);
  104. #ifdef CONFIG_SMP
  105. #ifdef CONFIG_PPC32
  106. EXPORT_SYMBOL(smp_hw_index);
  107. #endif
  108. #endif
  109. #ifdef CONFIG_ADB
  110. EXPORT_SYMBOL(adb_request);
  111. EXPORT_SYMBOL(adb_register);
  112. EXPORT_SYMBOL(adb_unregister);
  113. EXPORT_SYMBOL(adb_poll);
  114. EXPORT_SYMBOL(adb_try_handler_change);
  115. #endif /* CONFIG_ADB */
  116. #ifdef CONFIG_ADB_CUDA
  117. EXPORT_SYMBOL(cuda_request);
  118. EXPORT_SYMBOL(cuda_poll);
  119. #endif /* CONFIG_ADB_CUDA */
  120. EXPORT_SYMBOL(to_tm);
  121. #ifdef CONFIG_PPC32
  122. long long __ashrdi3(long long, int);
  123. long long __ashldi3(long long, int);
  124. long long __lshrdi3(long long, int);
  125. EXPORT_SYMBOL(__ashrdi3);
  126. EXPORT_SYMBOL(__ashldi3);
  127. EXPORT_SYMBOL(__lshrdi3);
  128. int __ucmpdi2(unsigned long long, unsigned long long);
  129. EXPORT_SYMBOL(__ucmpdi2);
  130. #endif
  131. EXPORT_SYMBOL(memcpy);
  132. EXPORT_SYMBOL(memset);
  133. EXPORT_SYMBOL(memmove);
  134. EXPORT_SYMBOL(memcmp);
  135. EXPORT_SYMBOL(memchr);
  136. #if defined(CONFIG_FB_VGA16_MODULE)
  137. EXPORT_SYMBOL(screen_info);
  138. #endif
  139. #ifdef CONFIG_PPC32
  140. EXPORT_SYMBOL(timer_interrupt);
  141. EXPORT_SYMBOL(tb_ticks_per_jiffy);
  142. EXPORT_SYMBOL(cacheable_memcpy);
  143. EXPORT_SYMBOL(cacheable_memzero);
  144. #endif
  145. #ifdef CONFIG_PPC32
  146. EXPORT_SYMBOL(switch_mmu_context);
  147. #endif
  148. #ifdef CONFIG_PPC_STD_MMU_32
  149. extern long mol_trampoline;
  150. EXPORT_SYMBOL(mol_trampoline); /* For MOL */
  151. EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
  152. #ifdef CONFIG_SMP
  153. extern int mmu_hash_lock;
  154. EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
  155. #endif /* CONFIG_SMP */
  156. extern long *intercept_table;
  157. EXPORT_SYMBOL(intercept_table);
  158. #endif /* CONFIG_PPC_STD_MMU_32 */
  159. #ifdef CONFIG_PPC_DCR_NATIVE
  160. EXPORT_SYMBOL(__mtdcr);
  161. EXPORT_SYMBOL(__mfdcr);
  162. #endif
  163. EXPORT_SYMBOL(empty_zero_page);
  164. #ifdef CONFIG_PPC64
  165. EXPORT_SYMBOL(__arch_hweight8);
  166. EXPORT_SYMBOL(__arch_hweight16);
  167. EXPORT_SYMBOL(__arch_hweight32);
  168. EXPORT_SYMBOL(__arch_hweight64);
  169. #endif
  170. #ifdef CONFIG_PPC_BOOK3S_64
  171. EXPORT_SYMBOL_GPL(mmu_psize_defs);
  172. #endif