···2929#include <asm/unistd.h>30303131#include <asm/asmmacro.h>3232+#include <asm/export.h>32333334#define curptr g63435···1208120712091208 ret12101209 restore12101210+EXPORT_SYMBOL(__udelay)12111211+EXPORT_SYMBOL(__ndelay)1211121212121213 /* Handle a software breakpoint */12131214 /* We have to inform parent that child has stopped */
+3
arch/sparc/kernel/head_32.S
···2424#include <asm/thread_info.h> /* TI_UWINMASK */2525#include <asm/errno.h>2626#include <asm/pgtsrmmu.h> /* SRMMU_PGDIR_SHIFT */2727+#include <asm/export.h>27282829 .data2930/* The following are used with the prom_vector node-ops to figure out···6160 */6261 .globl empty_zero_page6362empty_zero_page: .skip PAGE_SIZE6363+EXPORT_SYMBOL(empty_zero_page)64646565 .global root_flags6666 .global ram_flags···815813__ret_efault:816814 ret817815 restore %g0, -EFAULT, %o0816816+EXPORT_SYMBOL(__ret_efault)
+6-1
arch/sparc/kernel/head_64.S
···3232#include <asm/estate.h>3333#include <asm/sfafsr.h>3434#include <asm/unistd.h>3535-3535+#include <asm/export.h>3636+3637/* This section from from _start to sparc64_boot_end should fit into3738 * 0x0000000000404000 to 0x0000000000408000.3839 */···144143 .skip 64145144prom_root_node:146145 .word 0146146+EXPORT_SYMBOL(prom_root_node)147147prom_mmu_ihandle_cache:148148 .word 0149149prom_boot_mapped_pc:···160158 .word 0161159sun4v_chip_type:162160 .word SUN4V_CHIP_INVALID161161+EXPORT_SYMBOL(sun4v_chip_type)1631621:164163 rd %pc, %l0165164···923920 .globl prom_tba, tlb_type924921prom_tba: .xword 0925922tlb_type: .word 0 /* Must NOT end up in BSS */923923+EXPORT_SYMBOL(tlb_type)926924 .section ".fixup",#alloc,#execinstr927925928926 .globl __ret_efault, __retl_efault, __ret_one, __retl_one···931927 ret932928 restore %g0, -EFAULT, %o0933929ENDPROC(__ret_efault)930930+EXPORT_SYMBOL(__ret_efault)934931935932ENTRY(__retl_efault)936933 retl
+2
arch/sparc/kernel/helpers.S
···15152: retl1616 nop1717 .size __flushw_user,.-__flushw_user1818+EXPORT_SYMBOL(__flushw_user)18191920 /* Flush %fp and %i7 to the stack for all register2021 * windows active inside of the cpu. This allows···6261 .size hard_smp_processor_id,.-hard_smp_processor_id6362#endif6463 .size real_hard_smp_processor_id,.-real_hard_smp_processor_id6464+EXPORT_SYMBOL_GPL(real_hard_smp_processor_id)
+5
arch/sparc/kernel/hvcalls.S
···3433430: retl344344 nop345345ENDPROC(sun4v_mach_set_watchdog)346346+EXPORT_SYMBOL(sun4v_mach_set_watchdog)346347347348 /* No inputs and does not return. */348349ENTRY(sun4v_mach_sir)···777776 retl778777 nop779778ENDPROC(sun4v_niagara_getperf)779779+EXPORT_SYMBOL(sun4v_niagara_getperf)780780781781ENTRY(sun4v_niagara_setperf)782782 mov HV_FAST_SET_PERFREG, %o5···785783 retl786784 nop787785ENDPROC(sun4v_niagara_setperf)786786+EXPORT_SYMBOL(sun4v_niagara_setperf)788787789788ENTRY(sun4v_niagara2_getperf)790789 mov %o0, %o4···795792 retl796793 nop797794ENDPROC(sun4v_niagara2_getperf)795795+EXPORT_SYMBOL(sun4v_niagara2_getperf)798796799797ENTRY(sun4v_niagara2_setperf)800798 mov HV_FAST_N2_SET_PERFREG, %o5···803799 retl804800 nop805801ENDPROC(sun4v_niagara2_setperf)802802+EXPORT_SYMBOL(sun4v_niagara2_setperf)806803807804ENTRY(sun4v_reboot_data_set)808805 mov HV_FAST_REBOOT_DATA_SET, %o5
+12
arch/sparc/kernel/sparc_ksyms.c
···11+/*22+ * arch/sparc/kernel/ksyms.c: Sparc specific ksyms support.33+ *44+ * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)55+ * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)66+ */77+88+#include <linux/init.h>99+#include <linux/export.h>1010+1111+/* This is needed only for drivers/sbus/char/openprom.c */1212+EXPORT_SYMBOL(saved_command_line);
-31
arch/sparc/kernel/sparc_ksyms_32.c
···11-/*22- * arch/sparc/kernel/ksyms.c: Sparc specific ksyms support.33- *44- * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)55- * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)66- */77-88-#include <linux/module.h>99-1010-#include <asm/pgtable.h>1111-#include <asm/uaccess.h>1212-#include <asm/delay.h>1313-#include <asm/head.h>1414-#include <asm/dma.h>1515-1616-struct poll {1717- int fd;1818- short events;1919- short revents;2020-};2121-2222-/* from entry.S */2323-EXPORT_SYMBOL(__udelay);2424-EXPORT_SYMBOL(__ndelay);2525-2626-/* from head_32.S */2727-EXPORT_SYMBOL(__ret_efault);2828-EXPORT_SYMBOL(empty_zero_page);2929-3030-/* Exporting a symbol from /init/main.c */3131-EXPORT_SYMBOL(saved_command_line);
-53
arch/sparc/kernel/sparc_ksyms_64.c
···11-/* arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support.22- *33- * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)44- * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)55- * Copyright (C) 1999 Jakub Jelinek (jj@ultra.linux.cz)66- */77-88-#include <linux/export.h>99-#include <linux/pci.h>1010-#include <linux/bitops.h>1111-1212-#include <asm/cpudata.h>1313-#include <asm/uaccess.h>1414-#include <asm/spitfire.h>1515-#include <asm/oplib.h>1616-#include <asm/hypervisor.h>1717-#include <asm/cacheflush.h>1818-1919-struct poll {2020- int fd;2121- short events;2222- short revents;2323-};2424-2525-/* from helpers.S */2626-EXPORT_SYMBOL(__flushw_user);2727-EXPORT_SYMBOL_GPL(real_hard_smp_processor_id);2828-2929-/* from head_64.S */3030-EXPORT_SYMBOL(__ret_efault);3131-EXPORT_SYMBOL(tlb_type);3232-EXPORT_SYMBOL(sun4v_chip_type);3333-EXPORT_SYMBOL(prom_root_node);3434-3535-/* from hvcalls.S */3636-EXPORT_SYMBOL(sun4v_niagara_getperf);3737-EXPORT_SYMBOL(sun4v_niagara_setperf);3838-EXPORT_SYMBOL(sun4v_niagara2_getperf);3939-EXPORT_SYMBOL(sun4v_niagara2_setperf);4040-EXPORT_SYMBOL(sun4v_mach_set_watchdog);4141-4242-/* from hweight.S */4343-EXPORT_SYMBOL(__arch_hweight8);4444-EXPORT_SYMBOL(__arch_hweight16);4545-EXPORT_SYMBOL(__arch_hweight32);4646-EXPORT_SYMBOL(__arch_hweight64);4747-4848-/* from ffs_ffz.S */4949-EXPORT_SYMBOL(ffs);5050-EXPORT_SYMBOL(__ffs);5151-5252-/* Exporting a symbol from /init/main.c */5353-EXPORT_SYMBOL(saved_command_line);
···6677#include <linux/linkage.h>88#include <asm/page.h>99+#include <asm/export.h>9101011 /* Zero out 64 bytes of memory at (buf + offset).1112 * Assumes %g1 contains zero.···6564 retl6665 nop6766ENDPROC(bzero_1page)6767+EXPORT_SYMBOL(bzero_1page)68686969ENTRY(__copy_1page)7070/* NOTE: If you change the number of insns of this routine, please check···8987 retl9088 nop9189ENDPROC(__copy_1page)9090+EXPORT_SYMBOL(__copy_1page)
···1010#include <asm/pgtable.h>1111#include <asm/spitfire.h>1212#include <asm/head.h>1313+#include <asm/export.h>13141415 /* What we used to do was lock a TLB entry into a specific1516 * TLB slot, clear the page with interrupts disabled, then···4544 .align 324645 .globl copy_user_page4746 .type copy_user_page,#function4747+ EXPORT_SYMBOL(copy_user_page)4848copy_user_page: /* %o0=dest, %o1=src, %o2=vaddr */4949 lduw [%g6 + TI_PRE_COUNT], %o45050 sethi %hi(PAGE_OFFSET), %g2
+2
arch/sparc/lib/copy_user.S
···1515#include <asm/asmmacro.h>1616#include <asm/page.h>1717#include <asm/thread_info.h>1818+#include <asm/export.h>18191920/* Work around cpp -rob */2021#define ALLOC #alloc···120119__copy_user_begin:121120122121 .globl __copy_user122122+ EXPORT_SYMBOL(__copy_user)123123dword_align:124124 andcc %o1, 1, %g0125125 be 4f
···66 */7788#include <linux/linkage.h>99+#include <asm/export.h>9101011/*1112 * This is the main variant and is called by C code. GCC's -pg option···1716 .align 321817 .globl _mcount1918 .type _mcount,#function1919+ EXPORT_SYMBOL(_mcount)2020 .globl mcount2121 .type mcount,#function2222_mcount:
···44 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)55 */6677+#include <asm/export.h>88+79/* In essence, this is just a fancy strlen. */810911#define LO_MAGIC 0x01010101···1513 .align 41614 .globl __memscan_zero, __memscan_generic1715 .globl memscan1616+EXPORT_SYMBOL(__memscan_zero)1717+EXPORT_SYMBOL(__memscan_generic)1818__memscan_zero:1919 /* %o0 = addr, %o1 = size */2020 cmp %o1, 0