ia64: move exports to definitions
Here we have another kind of deviation from the default case - a difference between exporting functions and non-functions. EXPORT_DATA_SYMBOL... is really different from EXPORT_SYMBOL... on ia64, and we need to use the right one when moving exports from *.c where C compiler has the required information to *.S, where we need to supply it manually. parisc64 will be another one like that. Tested-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
fb2e6fdbbd
commit
e007c53397
3
arch/ia64/include/asm/export.h
Normal file
3
arch/ia64/include/asm/export.h
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/* EXPORT_DATA_SYMBOL != EXPORT_SYMBOL here */
|
||||||
|
#define KSYM_FUNC(name) @fptr(name)
|
||||||
|
#include <asm-generic/export.h>
|
@ -48,6 +48,7 @@
|
|||||||
#include <asm/thread_info.h>
|
#include <asm/thread_info.h>
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include <asm/ftrace.h>
|
#include <asm/ftrace.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#include "minstate.h"
|
#include "minstate.h"
|
||||||
|
|
||||||
@ -1345,12 +1346,14 @@ GLOBAL_ENTRY(unw_init_running)
|
|||||||
mov rp=loc0
|
mov rp=loc0
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(unw_init_running)
|
END(unw_init_running)
|
||||||
|
EXPORT_SYMBOL(unw_init_running)
|
||||||
|
|
||||||
#ifdef CONFIG_FUNCTION_TRACER
|
#ifdef CONFIG_FUNCTION_TRACER
|
||||||
#ifdef CONFIG_DYNAMIC_FTRACE
|
#ifdef CONFIG_DYNAMIC_FTRACE
|
||||||
GLOBAL_ENTRY(_mcount)
|
GLOBAL_ENTRY(_mcount)
|
||||||
br ftrace_stub
|
br ftrace_stub
|
||||||
END(_mcount)
|
END(_mcount)
|
||||||
|
EXPORT_SYMBOL(_mcount)
|
||||||
|
|
||||||
.here:
|
.here:
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Inputs:
|
* Inputs:
|
||||||
@ -94,3 +95,4 @@ GLOBAL_ENTRY(esi_call_phys)
|
|||||||
mov gp=loc2
|
mov gp=loc2
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(esi_call_phys)
|
END(esi_call_phys)
|
||||||
|
EXPORT_SYMBOL_GPL(esi_call_phys)
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include <asm/mca_asm.h>
|
#include <asm/mca_asm.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
#ifdef CONFIG_HOTPLUG_CPU
|
||||||
#define SAL_PSR_BITS_TO_SET \
|
#define SAL_PSR_BITS_TO_SET \
|
||||||
@ -168,6 +169,7 @@ RestRR: \
|
|||||||
__PAGE_ALIGNED_DATA
|
__PAGE_ALIGNED_DATA
|
||||||
|
|
||||||
.global empty_zero_page
|
.global empty_zero_page
|
||||||
|
EXPORT_DATA_SYMBOL_GPL(empty_zero_page)
|
||||||
empty_zero_page:
|
empty_zero_page:
|
||||||
.skip PAGE_SIZE
|
.skip PAGE_SIZE
|
||||||
|
|
||||||
|
@ -1,101 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Architecture-specific kernel symbols
|
* Architecture-specific kernel symbols
|
||||||
*
|
|
||||||
* Don't put any exports here unless it's defined in an assembler file.
|
|
||||||
* All other exports should be put directly after the definition.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
|
||||||
|
|
||||||
#include <linux/string.h>
|
|
||||||
EXPORT_SYMBOL(memset);
|
|
||||||
EXPORT_SYMBOL(memcpy);
|
|
||||||
EXPORT_SYMBOL(strlen);
|
|
||||||
|
|
||||||
#include <asm/pgtable.h>
|
|
||||||
EXPORT_SYMBOL_GPL(empty_zero_page);
|
|
||||||
|
|
||||||
#include <asm/checksum.h>
|
|
||||||
EXPORT_SYMBOL(ip_fast_csum); /* hand-coded assembly */
|
|
||||||
EXPORT_SYMBOL(csum_ipv6_magic);
|
|
||||||
|
|
||||||
#include <asm/page.h>
|
|
||||||
EXPORT_SYMBOL(clear_page);
|
|
||||||
EXPORT_SYMBOL(copy_page);
|
|
||||||
|
|
||||||
#ifdef CONFIG_VIRTUAL_MEM_MAP
|
#ifdef CONFIG_VIRTUAL_MEM_MAP
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
#include <linux/export.h>
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
||||||
EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <asm/processor.h>
|
|
||||||
EXPORT_SYMBOL(ia64_cpu_info);
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
EXPORT_SYMBOL(local_per_cpu_offset);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <asm/uaccess.h>
|
|
||||||
EXPORT_SYMBOL(__copy_user);
|
|
||||||
EXPORT_SYMBOL(__do_clear_user);
|
|
||||||
EXPORT_SYMBOL(__strlen_user);
|
|
||||||
EXPORT_SYMBOL(__strncpy_from_user);
|
|
||||||
EXPORT_SYMBOL(__strnlen_user);
|
|
||||||
|
|
||||||
/* from arch/ia64/lib */
|
|
||||||
extern void __divsi3(void);
|
|
||||||
extern void __udivsi3(void);
|
|
||||||
extern void __modsi3(void);
|
|
||||||
extern void __umodsi3(void);
|
|
||||||
extern void __divdi3(void);
|
|
||||||
extern void __udivdi3(void);
|
|
||||||
extern void __moddi3(void);
|
|
||||||
extern void __umoddi3(void);
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(__divsi3);
|
|
||||||
EXPORT_SYMBOL(__udivsi3);
|
|
||||||
EXPORT_SYMBOL(__modsi3);
|
|
||||||
EXPORT_SYMBOL(__umodsi3);
|
|
||||||
EXPORT_SYMBOL(__divdi3);
|
|
||||||
EXPORT_SYMBOL(__udivdi3);
|
|
||||||
EXPORT_SYMBOL(__moddi3);
|
|
||||||
EXPORT_SYMBOL(__umoddi3);
|
|
||||||
|
|
||||||
#if defined(CONFIG_MD_RAID456) || defined(CONFIG_MD_RAID456_MODULE)
|
|
||||||
extern void xor_ia64_2(void);
|
|
||||||
extern void xor_ia64_3(void);
|
|
||||||
extern void xor_ia64_4(void);
|
|
||||||
extern void xor_ia64_5(void);
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(xor_ia64_2);
|
|
||||||
EXPORT_SYMBOL(xor_ia64_3);
|
|
||||||
EXPORT_SYMBOL(xor_ia64_4);
|
|
||||||
EXPORT_SYMBOL(xor_ia64_5);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <asm/pal.h>
|
|
||||||
EXPORT_SYMBOL(ia64_pal_call_phys_stacked);
|
|
||||||
EXPORT_SYMBOL(ia64_pal_call_phys_static);
|
|
||||||
EXPORT_SYMBOL(ia64_pal_call_stacked);
|
|
||||||
EXPORT_SYMBOL(ia64_pal_call_static);
|
|
||||||
EXPORT_SYMBOL(ia64_load_scratch_fpregs);
|
|
||||||
EXPORT_SYMBOL(ia64_save_scratch_fpregs);
|
|
||||||
|
|
||||||
#include <asm/unwind.h>
|
|
||||||
EXPORT_SYMBOL(unw_init_running);
|
|
||||||
|
|
||||||
#if defined(CONFIG_IA64_ESI) || defined(CONFIG_IA64_ESI_MODULE)
|
|
||||||
extern void esi_call_phys (void);
|
|
||||||
EXPORT_SYMBOL_GPL(esi_call_phys);
|
|
||||||
#endif
|
|
||||||
extern char ia64_ivt[];
|
|
||||||
EXPORT_SYMBOL(ia64_ivt);
|
|
||||||
|
|
||||||
#include <asm/ftrace.h>
|
|
||||||
#ifdef CONFIG_FUNCTION_TRACER
|
|
||||||
/* mcount is defined in assembly */
|
|
||||||
EXPORT_SYMBOL(_mcount);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <asm/cacheflush.h>
|
|
||||||
EXPORT_SYMBOL_GPL(flush_icache_range);
|
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include <asm/thread_info.h>
|
#include <asm/thread_info.h>
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include <asm/errno.h>
|
#include <asm/errno.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
# define PSR_DEFAULT_BITS psr.ac
|
# define PSR_DEFAULT_BITS psr.ac
|
||||||
@ -85,6 +86,7 @@
|
|||||||
|
|
||||||
.align 32768 // align on 32KB boundary
|
.align 32768 // align on 32KB boundary
|
||||||
.global ia64_ivt
|
.global ia64_ivt
|
||||||
|
EXPORT_DATA_SYMBOL(ia64_ivt)
|
||||||
ia64_ivt:
|
ia64_ivt:
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// 0x0000 Entry 0 (size 64 bundles) VHPT Translation (8,20,47)
|
// 0x0000 Entry 0 (size 64 bundles) VHPT Translation (8,20,47)
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
.data
|
.data
|
||||||
pal_entry_point:
|
pal_entry_point:
|
||||||
@ -87,6 +88,7 @@ GLOBAL_ENTRY(ia64_pal_call_static)
|
|||||||
srlz.d // seralize restoration of psr.l
|
srlz.d // seralize restoration of psr.l
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(ia64_pal_call_static)
|
END(ia64_pal_call_static)
|
||||||
|
EXPORT_SYMBOL(ia64_pal_call_static)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make a PAL call using the stacked registers calling convention.
|
* Make a PAL call using the stacked registers calling convention.
|
||||||
@ -122,6 +124,7 @@ GLOBAL_ENTRY(ia64_pal_call_stacked)
|
|||||||
srlz.d // serialize restoration of psr.l
|
srlz.d // serialize restoration of psr.l
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(ia64_pal_call_stacked)
|
END(ia64_pal_call_stacked)
|
||||||
|
EXPORT_SYMBOL(ia64_pal_call_stacked)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make a physical mode PAL call using the static registers calling convention.
|
* Make a physical mode PAL call using the static registers calling convention.
|
||||||
@ -193,6 +196,7 @@ GLOBAL_ENTRY(ia64_pal_call_phys_static)
|
|||||||
srlz.d // seralize restoration of psr.l
|
srlz.d // seralize restoration of psr.l
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(ia64_pal_call_phys_static)
|
END(ia64_pal_call_phys_static)
|
||||||
|
EXPORT_SYMBOL(ia64_pal_call_phys_static)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make a PAL call using the stacked registers in physical mode.
|
* Make a PAL call using the stacked registers in physical mode.
|
||||||
@ -250,6 +254,7 @@ GLOBAL_ENTRY(ia64_pal_call_phys_stacked)
|
|||||||
srlz.d // seralize restoration of psr.l
|
srlz.d // seralize restoration of psr.l
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(ia64_pal_call_phys_stacked)
|
END(ia64_pal_call_phys_stacked)
|
||||||
|
EXPORT_SYMBOL(ia64_pal_call_phys_stacked)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save scratch fp scratch regs which aren't saved in pt_regs already
|
* Save scratch fp scratch regs which aren't saved in pt_regs already
|
||||||
@ -275,6 +280,7 @@ GLOBAL_ENTRY(ia64_save_scratch_fpregs)
|
|||||||
stf.spill [r2] = f15,32
|
stf.spill [r2] = f15,32
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(ia64_save_scratch_fpregs)
|
END(ia64_save_scratch_fpregs)
|
||||||
|
EXPORT_SYMBOL(ia64_save_scratch_fpregs)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Load scratch fp scratch regs (fp10-fp15)
|
* Load scratch fp scratch regs (fp10-fp15)
|
||||||
@ -296,3 +302,4 @@ GLOBAL_ENTRY(ia64_load_scratch_fpregs)
|
|||||||
ldf.fill f15 = [r2],32
|
ldf.fill f15 = [r2],32
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(ia64_load_scratch_fpregs)
|
END(ia64_load_scratch_fpregs)
|
||||||
|
EXPORT_SYMBOL(ia64_load_scratch_fpregs)
|
||||||
|
@ -71,7 +71,11 @@ EXPORT_SYMBOL(__per_cpu_offset);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEFINE_PER_CPU(struct cpuinfo_ia64, ia64_cpu_info);
|
DEFINE_PER_CPU(struct cpuinfo_ia64, ia64_cpu_info);
|
||||||
|
EXPORT_SYMBOL(ia64_cpu_info);
|
||||||
DEFINE_PER_CPU(unsigned long, local_per_cpu_offset);
|
DEFINE_PER_CPU(unsigned long, local_per_cpu_offset);
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
EXPORT_SYMBOL(local_per_cpu_offset);
|
||||||
|
#endif
|
||||||
unsigned long ia64_cycles_per_usec;
|
unsigned long ia64_cycles_per_usec;
|
||||||
struct ia64_boot_param *ia64_boot_param;
|
struct ia64_boot_param *ia64_boot_param;
|
||||||
struct screen_info screen_info;
|
struct screen_info screen_info;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ITANIUM
|
#ifdef CONFIG_ITANIUM
|
||||||
# define L3_LINE_SIZE 64 // Itanium L3 line size
|
# define L3_LINE_SIZE 64 // Itanium L3 line size
|
||||||
@ -74,3 +75,4 @@ GLOBAL_ENTRY(clear_page)
|
|||||||
mov ar.lc = saved_lc // restore lc
|
mov ar.lc = saved_lc // restore lc
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(clear_page)
|
END(clear_page)
|
||||||
|
EXPORT_SYMBOL(clear_page)
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// arguments
|
// arguments
|
||||||
@ -207,3 +208,4 @@ GLOBAL_ENTRY(__do_clear_user)
|
|||||||
mov ar.lc=saved_lc
|
mov ar.lc=saved_lc
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(__do_clear_user)
|
END(__do_clear_user)
|
||||||
|
EXPORT_SYMBOL(__do_clear_user)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#define PIPE_DEPTH 3
|
#define PIPE_DEPTH 3
|
||||||
#define EPI p[PIPE_DEPTH-1]
|
#define EPI p[PIPE_DEPTH-1]
|
||||||
@ -96,3 +97,4 @@ GLOBAL_ENTRY(copy_page)
|
|||||||
mov ar.lc=saved_lc
|
mov ar.lc=saved_lc
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(copy_page)
|
END(copy_page)
|
||||||
|
EXPORT_SYMBOL(copy_page)
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#define PREFETCH_DIST 8 // McKinley sustains 16 outstanding L2 misses (8 ld, 8 st)
|
#define PREFETCH_DIST 8 // McKinley sustains 16 outstanding L2 misses (8 ld, 8 st)
|
||||||
|
|
||||||
@ -183,3 +184,4 @@ GLOBAL_ENTRY(copy_page)
|
|||||||
mov pr = saved_pr, -1
|
mov pr = saved_pr, -1
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(copy_page)
|
END(copy_page)
|
||||||
|
EXPORT_SYMBOL(copy_page)
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Tuneable parameters
|
// Tuneable parameters
|
||||||
@ -608,3 +609,4 @@ GLOBAL_ENTRY(__copy_user)
|
|||||||
mov ar.pfs=saved_pfs
|
mov ar.pfs=saved_pfs
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(__copy_user)
|
END(__copy_user)
|
||||||
|
EXPORT_SYMBOL(__copy_user)
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -60,6 +61,7 @@ GLOBAL_ENTRY(flush_icache_range)
|
|||||||
mov ar.lc=r3 // restore ar.lc
|
mov ar.lc=r3 // restore ar.lc
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(flush_icache_range)
|
END(flush_icache_range)
|
||||||
|
EXPORT_SYMBOL_GPL(flush_icache_range)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* clflush_cache_range(start,size)
|
* clflush_cache_range(start,size)
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#ifdef MODULO
|
#ifdef MODULO
|
||||||
# define OP mod
|
# define OP mod
|
||||||
@ -81,3 +82,4 @@ GLOBAL_ENTRY(NAME)
|
|||||||
getf.sig r8 = f6 // transfer result to result register
|
getf.sig r8 = f6 // transfer result to result register
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(NAME)
|
END(NAME)
|
||||||
|
EXPORT_SYMBOL(NAME)
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#ifdef MODULO
|
#ifdef MODULO
|
||||||
# define OP mod
|
# define OP mod
|
||||||
@ -78,3 +79,4 @@ GLOBAL_ENTRY(NAME)
|
|||||||
getf.sig r8 = f11 // transfer result to result register
|
getf.sig r8 = f11 // transfer result to result register
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(NAME)
|
END(NAME)
|
||||||
|
EXPORT_SYMBOL(NAME)
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since we know that most likely this function is called with buf aligned
|
* Since we know that most likely this function is called with buf aligned
|
||||||
@ -92,6 +93,7 @@ GLOBAL_ENTRY(ip_fast_csum)
|
|||||||
mov b0=r34
|
mov b0=r34
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(ip_fast_csum)
|
END(ip_fast_csum)
|
||||||
|
EXPORT_SYMBOL(ip_fast_csum)
|
||||||
|
|
||||||
GLOBAL_ENTRY(csum_ipv6_magic)
|
GLOBAL_ENTRY(csum_ipv6_magic)
|
||||||
ld4 r20=[in0],4
|
ld4 r20=[in0],4
|
||||||
@ -142,3 +144,4 @@ GLOBAL_ENTRY(csum_ipv6_magic)
|
|||||||
andcm r8=r9,r8
|
andcm r8=r9,r8
|
||||||
br.ret.sptk.many b0
|
br.ret.sptk.many b0
|
||||||
END(csum_ipv6_magic)
|
END(csum_ipv6_magic)
|
||||||
|
EXPORT_SYMBOL(csum_ipv6_magic)
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* David Mosberger-Tang <davidm@hpl.hp.com>
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
||||||
*/
|
*/
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
GLOBAL_ENTRY(memcpy)
|
GLOBAL_ENTRY(memcpy)
|
||||||
|
|
||||||
@ -299,3 +300,4 @@ GLOBAL_ENTRY(memcpy)
|
|||||||
COPY(56, 0)
|
COPY(56, 0)
|
||||||
|
|
||||||
END(memcpy)
|
END(memcpy)
|
||||||
|
EXPORT_SYMBOL(memcpy)
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
#define EK(y...) EX(y)
|
#define EK(y...) EX(y)
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ GLOBAL_ENTRY(memcpy)
|
|||||||
br.cond.sptk .common_code
|
br.cond.sptk .common_code
|
||||||
;;
|
;;
|
||||||
END(memcpy)
|
END(memcpy)
|
||||||
|
EXPORT_SYMBOL(memcpy)
|
||||||
GLOBAL_ENTRY(__copy_user)
|
GLOBAL_ENTRY(__copy_user)
|
||||||
.prologue
|
.prologue
|
||||||
// check dest alignment
|
// check dest alignment
|
||||||
@ -664,3 +666,4 @@ EK(.ex_handler, (p17) st8 [dst1]=r39,8); \
|
|||||||
|
|
||||||
/* end of McKinley specific optimization */
|
/* end of McKinley specific optimization */
|
||||||
END(__copy_user)
|
END(__copy_user)
|
||||||
|
EXPORT_SYMBOL(__copy_user)
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
to get peak speed when value = 0. */
|
to get peak speed when value = 0. */
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
#undef ret
|
#undef ret
|
||||||
|
|
||||||
#define dest in0
|
#define dest in0
|
||||||
@ -360,3 +361,4 @@ GLOBAL_ENTRY(memset)
|
|||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
}
|
}
|
||||||
END(memset)
|
END(memset)
|
||||||
|
EXPORT_SYMBOL(memset)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -190,3 +191,4 @@ GLOBAL_ENTRY(strlen)
|
|||||||
mov ar.pfs=saved_pfs // because of ar.ec, restore no matter what
|
mov ar.pfs=saved_pfs // because of ar.ec, restore no matter what
|
||||||
br.ret.sptk.many rp // end of successful recovery code
|
br.ret.sptk.many rp // end of successful recovery code
|
||||||
END(strlen)
|
END(strlen)
|
||||||
|
EXPORT_SYMBOL(strlen)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// int strlen_user(char *)
|
// int strlen_user(char *)
|
||||||
@ -196,3 +197,4 @@ GLOBAL_ENTRY(__strlen_user)
|
|||||||
mov ar.pfs=saved_pfs // because of ar.ec, restore no matter what
|
mov ar.pfs=saved_pfs // because of ar.ec, restore no matter what
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(__strlen_user)
|
END(__strlen_user)
|
||||||
|
EXPORT_SYMBOL(__strlen_user)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
GLOBAL_ENTRY(__strncpy_from_user)
|
GLOBAL_ENTRY(__strncpy_from_user)
|
||||||
alloc r2=ar.pfs,3,0,0,0
|
alloc r2=ar.pfs,3,0,0,0
|
||||||
@ -42,3 +43,4 @@ GLOBAL_ENTRY(__strncpy_from_user)
|
|||||||
[.Lexit:]
|
[.Lexit:]
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(__strncpy_from_user)
|
END(__strncpy_from_user)
|
||||||
|
EXPORT_SYMBOL(__strncpy_from_user)
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
GLOBAL_ENTRY(__strnlen_user)
|
GLOBAL_ENTRY(__strnlen_user)
|
||||||
.prologue
|
.prologue
|
||||||
@ -43,3 +44,4 @@ GLOBAL_ENTRY(__strnlen_user)
|
|||||||
mov ar.lc=r16 // restore ar.lc
|
mov ar.lc=r16 // restore ar.lc
|
||||||
br.ret.sptk.many rp
|
br.ret.sptk.many rp
|
||||||
END(__strnlen_user)
|
END(__strnlen_user)
|
||||||
|
EXPORT_SYMBOL(__strnlen_user)
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/asmmacro.h>
|
#include <asm/asmmacro.h>
|
||||||
|
#include <asm/export.h>
|
||||||
|
|
||||||
GLOBAL_ENTRY(xor_ia64_2)
|
GLOBAL_ENTRY(xor_ia64_2)
|
||||||
.prologue
|
.prologue
|
||||||
@ -51,6 +52,7 @@ GLOBAL_ENTRY(xor_ia64_2)
|
|||||||
mov pr = r29, -1
|
mov pr = r29, -1
|
||||||
br.ret.sptk.few rp
|
br.ret.sptk.few rp
|
||||||
END(xor_ia64_2)
|
END(xor_ia64_2)
|
||||||
|
EXPORT_SYMBOL(xor_ia64_2)
|
||||||
|
|
||||||
GLOBAL_ENTRY(xor_ia64_3)
|
GLOBAL_ENTRY(xor_ia64_3)
|
||||||
.prologue
|
.prologue
|
||||||
@ -91,6 +93,7 @@ GLOBAL_ENTRY(xor_ia64_3)
|
|||||||
mov pr = r29, -1
|
mov pr = r29, -1
|
||||||
br.ret.sptk.few rp
|
br.ret.sptk.few rp
|
||||||
END(xor_ia64_3)
|
END(xor_ia64_3)
|
||||||
|
EXPORT_SYMBOL(xor_ia64_3)
|
||||||
|
|
||||||
GLOBAL_ENTRY(xor_ia64_4)
|
GLOBAL_ENTRY(xor_ia64_4)
|
||||||
.prologue
|
.prologue
|
||||||
@ -134,6 +137,7 @@ GLOBAL_ENTRY(xor_ia64_4)
|
|||||||
mov pr = r29, -1
|
mov pr = r29, -1
|
||||||
br.ret.sptk.few rp
|
br.ret.sptk.few rp
|
||||||
END(xor_ia64_4)
|
END(xor_ia64_4)
|
||||||
|
EXPORT_SYMBOL(xor_ia64_4)
|
||||||
|
|
||||||
GLOBAL_ENTRY(xor_ia64_5)
|
GLOBAL_ENTRY(xor_ia64_5)
|
||||||
.prologue
|
.prologue
|
||||||
@ -182,3 +186,4 @@ GLOBAL_ENTRY(xor_ia64_5)
|
|||||||
mov pr = r29, -1
|
mov pr = r29, -1
|
||||||
br.ret.sptk.few rp
|
br.ret.sptk.few rp
|
||||||
END(xor_ia64_5)
|
END(xor_ia64_5)
|
||||||
|
EXPORT_SYMBOL(xor_ia64_5)
|
||||||
|
Loading…
Reference in New Issue
Block a user