2005-09-28 10:28:14 +00:00
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/threads.h>
|
|
|
|
#include <linux/smp.h>
|
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/elfcore.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/interrupt.h>
|
2006-07-10 11:44:13 +00:00
|
|
|
#include <linux/screen_info.h>
|
2005-09-28 10:28:14 +00:00
|
|
|
#include <linux/vt_kern.h>
|
|
|
|
#include <linux/nvram.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/bitops.h>
|
|
|
|
|
|
|
|
#include <asm/page.h>
|
|
|
|
#include <asm/processor.h>
|
2007-09-20 02:25:17 +00:00
|
|
|
#include <asm/cacheflush.h>
|
2005-09-28 10:28:14 +00:00
|
|
|
#include <asm/uaccess.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
#include <asm/atomic.h>
|
|
|
|
#include <asm/checksum.h>
|
|
|
|
#include <asm/pgtable.h>
|
|
|
|
#include <asm/tlbflush.h>
|
|
|
|
#include <linux/adb.h>
|
|
|
|
#include <linux/cuda.h>
|
|
|
|
#include <linux/pmu.h>
|
|
|
|
#include <asm/prom.h>
|
|
|
|
#include <asm/system.h>
|
|
|
|
#include <asm/pci-bridge.h>
|
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <asm/pmac_feature.h>
|
|
|
|
#include <asm/dma.h>
|
|
|
|
#include <asm/machdep.h>
|
|
|
|
#include <asm/hw_irq.h>
|
|
|
|
#include <asm/nvram.h>
|
|
|
|
#include <asm/mmu_context.h>
|
|
|
|
#include <asm/backlight.h>
|
|
|
|
#include <asm/time.h>
|
|
|
|
#include <asm/cputable.h>
|
|
|
|
#include <asm/btext.h>
|
|
|
|
#include <asm/div64.h>
|
2005-11-09 00:21:07 +00:00
|
|
|
#include <asm/signal.h>
|
2007-02-06 00:48:28 +00:00
|
|
|
#include <asm/dcr.h>
|
2008-05-22 18:31:07 +00:00
|
|
|
#include <asm/ftrace.h>
|
2005-09-28 10:28:14 +00:00
|
|
|
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 10:28:14 +00:00
|
|
|
extern void transfer_to_handler(void);
|
|
|
|
extern void do_IRQ(struct pt_regs *regs);
|
2005-10-01 08:43:42 +00:00
|
|
|
extern void machine_check_exception(struct pt_regs *regs);
|
|
|
|
extern void alignment_exception(struct pt_regs *regs);
|
|
|
|
extern void program_check_exception(struct pt_regs *regs);
|
|
|
|
extern void single_step_exception(struct pt_regs *regs);
|
2005-09-28 10:28:14 +00:00
|
|
|
extern int sys_sigreturn(struct pt_regs *regs);
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(clear_pages);
|
2008-01-01 15:36:07 +00:00
|
|
|
EXPORT_SYMBOL(copy_page);
|
2005-10-10 12:50:37 +00:00
|
|
|
EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
|
|
|
|
EXPORT_SYMBOL(DMA_MODE_READ);
|
|
|
|
EXPORT_SYMBOL(DMA_MODE_WRITE);
|
|
|
|
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(transfer_to_handler);
|
|
|
|
EXPORT_SYMBOL(do_IRQ);
|
2005-10-01 08:43:42 +00:00
|
|
|
EXPORT_SYMBOL(machine_check_exception);
|
|
|
|
EXPORT_SYMBOL(alignment_exception);
|
|
|
|
EXPORT_SYMBOL(program_check_exception);
|
|
|
|
EXPORT_SYMBOL(single_step_exception);
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(sys_sigreturn);
|
2005-10-10 12:50:37 +00:00
|
|
|
#endif
|
2005-09-28 10:28:14 +00:00
|
|
|
|
2008-10-06 23:06:12 +00:00
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
2008-05-22 18:31:07 +00:00
|
|
|
EXPORT_SYMBOL(_mcount);
|
|
|
|
#endif
|
|
|
|
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(strcpy);
|
|
|
|
EXPORT_SYMBOL(strncpy);
|
|
|
|
EXPORT_SYMBOL(strcat);
|
|
|
|
EXPORT_SYMBOL(strlen);
|
|
|
|
EXPORT_SYMBOL(strcmp);
|
2008-02-29 16:04:57 +00:00
|
|
|
EXPORT_SYMBOL(strncmp);
|
2005-09-28 10:28:14 +00:00
|
|
|
|
|
|
|
EXPORT_SYMBOL(csum_partial);
|
|
|
|
EXPORT_SYMBOL(csum_partial_copy_generic);
|
|
|
|
EXPORT_SYMBOL(ip_fast_csum);
|
|
|
|
EXPORT_SYMBOL(csum_tcpudp_magic);
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(__copy_tofrom_user);
|
|
|
|
EXPORT_SYMBOL(__clear_user);
|
|
|
|
EXPORT_SYMBOL(__strncpy_from_user);
|
|
|
|
EXPORT_SYMBOL(__strnlen_user);
|
2006-09-12 15:04:25 +00:00
|
|
|
#ifdef CONFIG_PPC64
|
|
|
|
EXPORT_SYMBOL(copy_4K_page);
|
|
|
|
#endif
|
2005-09-28 10:28:14 +00:00
|
|
|
|
2005-10-10 12:50:37 +00:00
|
|
|
#if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(isa_io_base);
|
|
|
|
EXPORT_SYMBOL(isa_mem_base);
|
|
|
|
EXPORT_SYMBOL(pci_dram_offset);
|
|
|
|
#endif /* CONFIG_PCI */
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(start_thread);
|
|
|
|
EXPORT_SYMBOL(kernel_thread);
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(giveup_fpu);
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_ALTIVEC
|
|
|
|
EXPORT_SYMBOL(giveup_altivec);
|
|
|
|
#endif /* CONFIG_ALTIVEC */
|
2008-06-25 04:07:18 +00:00
|
|
|
#ifdef CONFIG_VSX
|
|
|
|
EXPORT_SYMBOL(giveup_vsx);
|
2010-01-15 13:49:09 +00:00
|
|
|
EXPORT_SYMBOL_GPL(__giveup_vsx);
|
2008-06-25 04:07:18 +00:00
|
|
|
#endif /* CONFIG_VSX */
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_SPE
|
|
|
|
EXPORT_SYMBOL(giveup_spe);
|
|
|
|
#endif /* CONFIG_SPE */
|
|
|
|
|
2005-11-29 04:50:58 +00:00
|
|
|
#ifndef CONFIG_PPC64
|
2005-10-10 12:50:37 +00:00
|
|
|
EXPORT_SYMBOL(flush_instruction_cache);
|
|
|
|
#endif
|
2005-11-29 04:50:58 +00:00
|
|
|
EXPORT_SYMBOL(__flush_icache_range);
|
2005-10-10 12:50:37 +00:00
|
|
|
EXPORT_SYMBOL(flush_dcache_range);
|
|
|
|
|
2005-09-28 10:28:14 +00:00
|
|
|
#ifdef CONFIG_SMP
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(smp_hw_index);
|
|
|
|
#endif
|
2005-10-10 12:50:37 +00:00
|
|
|
#endif
|
2005-09-28 10:28:14 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_ADB
|
|
|
|
EXPORT_SYMBOL(adb_request);
|
|
|
|
EXPORT_SYMBOL(adb_register);
|
|
|
|
EXPORT_SYMBOL(adb_unregister);
|
|
|
|
EXPORT_SYMBOL(adb_poll);
|
|
|
|
EXPORT_SYMBOL(adb_try_handler_change);
|
|
|
|
#endif /* CONFIG_ADB */
|
|
|
|
#ifdef CONFIG_ADB_CUDA
|
|
|
|
EXPORT_SYMBOL(cuda_request);
|
|
|
|
EXPORT_SYMBOL(cuda_poll);
|
|
|
|
#endif /* CONFIG_ADB_CUDA */
|
|
|
|
EXPORT_SYMBOL(to_tm);
|
|
|
|
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_PPC32
|
|
|
|
long long __ashrdi3(long long, int);
|
|
|
|
long long __ashldi3(long long, int);
|
|
|
|
long long __lshrdi3(long long, int);
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(__ashrdi3);
|
|
|
|
EXPORT_SYMBOL(__ashldi3);
|
|
|
|
EXPORT_SYMBOL(__lshrdi3);
|
2008-03-12 22:39:55 +00:00
|
|
|
int __ucmpdi2(unsigned long long, unsigned long long);
|
|
|
|
EXPORT_SYMBOL(__ucmpdi2);
|
2005-10-10 12:50:37 +00:00
|
|
|
#endif
|
|
|
|
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(memcpy);
|
|
|
|
EXPORT_SYMBOL(memset);
|
|
|
|
EXPORT_SYMBOL(memmove);
|
|
|
|
EXPORT_SYMBOL(memcmp);
|
|
|
|
EXPORT_SYMBOL(memchr);
|
|
|
|
|
|
|
|
#if defined(CONFIG_FB_VGA16_MODULE)
|
|
|
|
EXPORT_SYMBOL(screen_info);
|
|
|
|
#endif
|
|
|
|
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(timer_interrupt);
|
|
|
|
EXPORT_SYMBOL(tb_ticks_per_jiffy);
|
2005-10-10 12:50:37 +00:00
|
|
|
EXPORT_SYMBOL(cacheable_memcpy);
|
2009-01-07 05:00:05 +00:00
|
|
|
EXPORT_SYMBOL(cacheable_memzero);
|
2005-09-28 10:28:14 +00:00
|
|
|
#endif
|
|
|
|
|
2005-10-10 12:50:37 +00:00
|
|
|
#ifdef CONFIG_PPC32
|
2008-12-18 19:13:24 +00:00
|
|
|
EXPORT_SYMBOL(switch_mmu_context);
|
2005-10-10 12:50:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC_STD_MMU_32
|
2005-09-28 10:28:14 +00:00
|
|
|
extern long mol_trampoline;
|
|
|
|
EXPORT_SYMBOL(mol_trampoline); /* For MOL */
|
|
|
|
EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
extern int mmu_hash_lock;
|
|
|
|
EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
|
|
|
|
#endif /* CONFIG_SMP */
|
|
|
|
extern long *intercept_table;
|
|
|
|
EXPORT_SYMBOL(intercept_table);
|
2005-10-10 12:50:37 +00:00
|
|
|
#endif /* CONFIG_PPC_STD_MMU_32 */
|
2006-12-11 05:15:47 +00:00
|
|
|
#ifdef CONFIG_PPC_DCR_NATIVE
|
2005-09-28 10:28:14 +00:00
|
|
|
EXPORT_SYMBOL(__mtdcr);
|
|
|
|
EXPORT_SYMBOL(__mfdcr);
|
|
|
|
#endif
|
2008-03-13 05:20:31 +00:00
|
|
|
EXPORT_SYMBOL(empty_zero_page);
|