2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
|
2008-02-05 02:46:23 +03:00
|
|
|
#include<asm/pgtable.h>
|
|
|
|
EXPORT_SYMBOL_GPL(empty_zero_page);
|
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
#include <asm/checksum.h>
|
|
|
|
EXPORT_SYMBOL(ip_fast_csum); /* hand-coded assembly */
|
2006-12-08 00:18:57 +03:00
|
|
|
EXPORT_SYMBOL(csum_ipv6_magic);
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
#include <asm/page.h>
|
|
|
|
EXPORT_SYMBOL(clear_page);
|
|
|
|
|
|
|
|
#ifdef CONFIG_VIRTUAL_MEM_MAP
|
|
|
|
#include <linux/bootmem.h>
|
2005-11-09 23:25:06 +03:00
|
|
|
EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
2005-04-17 02:20:36 +04:00
|
|
|
EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <asm/processor.h>
|
|
|
|
EXPORT_SYMBOL(per_cpu__cpu_info);
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
EXPORT_SYMBOL(per_cpu__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);
|
|
|
|
|
2007-12-08 03:10:19 +03:00
|
|
|
#include <asm/page.h>
|
|
|
|
EXPORT_SYMBOL(copy_page);
|
|
|
|
|
2006-07-31 17:12:11 +04:00
|
|
|
#if defined(CONFIG_MD_RAID456) || defined(CONFIG_MD_RAID456_MODULE)
|
2005-04-17 02:20:36 +04:00
|
|
|
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);
|
|
|
|
|
|
|
|
#ifdef ASM_SUPPORTED
|
|
|
|
# ifdef CONFIG_SMP
|
2006-01-08 12:04:09 +03:00
|
|
|
# if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
|
2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* This is not a normal routine and we don't want a function descriptor for it, so we use
|
|
|
|
* a fake declaration here.
|
|
|
|
*/
|
|
|
|
extern char ia64_spinlock_contention_pre3_4;
|
|
|
|
EXPORT_SYMBOL(ia64_spinlock_contention_pre3_4);
|
|
|
|
# else
|
|
|
|
/*
|
|
|
|
* This is not a normal routine and we don't want a function descriptor for it, so we use
|
|
|
|
* a fake declaration here.
|
|
|
|
*/
|
|
|
|
extern char ia64_spinlock_contention;
|
|
|
|
EXPORT_SYMBOL(ia64_spinlock_contention);
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
[IA64] esi-support
Add support for making ESI calls [1]. ESI stands for "Extensible SAL
specification" and is basically a way for invoking firmware
subroutines which are identified by a GUID. I don't know whether ESI
is used by vendors other than HP (if you do, please let me know) but
as firmware "backdoors" go, this seems one of the cleaner methods, so
it seems reasonable to support it, even though I'm not aware of any
publicly documented ESI calls. I'd have liked to make the ESI module
completely stand-alone, but unfortunately that is not easily (or not
at all) possible because in order to make ESI calls in physical mode,
a small stub similar to the EFI stub is needed in the kernel proper.
I did try to create a stub that would work in user-level, but it
quickly got ugly beyond recognition (e.g., the stub had to make
assumptions about how the module-loader generated call-stubs work) and
I didn't even get it to work (that's probably fixable, but I didn't
bother because I concluded it was too ugly anyhow). While it's not
terribly elegant to have kernel code which isn't actively used in the
kernel proper, I think it might be worth making an exception here for
two reasons: the code is trivially small (all that's really needed is
esi_stub.S) and by including it in the normal kernel distro, it might
encourage other OEMs to also use ESI, which I think would be far
better than each inventing their own firmware "backdoor".
The code was originally written by Alex. I just massaged and packaged
it a bit (and perhaps messed up some things along the way...).
Changes since first version of patch that was posted to mailing list:
* Export ia64_esi_call and ia64_esi_call_phys() as GPL symbols.
* Disallow building esi.c as a module for now. Building as a module
would currently lead to an unresolved reference to "sal_lock" on SMP kernels
because that symbol doesn't get exported.
* Export esi_call_phys() only if ESI is enabled.
* Remove internal stuff from esi.h and add a "proc_type" argument to
ia64_esi_call() such that serialization-requirements can be expressed (ESI
follows SAL here, where procedure calls may have to be serialized, are
MP-safe, or MP-safe andr reentrant).
[1] h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,919,00.html
Signed-off-by: David Mosberger <David.Mosberger@acm.org>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2006-06-21 22:19:22 +04:00
|
|
|
#if defined(CONFIG_IA64_ESI) || defined(CONFIG_IA64_ESI_MODULE)
|
|
|
|
extern void esi_call_phys (void);
|
|
|
|
EXPORT_SYMBOL_GPL(esi_call_phys);
|
|
|
|
#endif
|
2005-04-17 02:20:36 +04:00
|
|
|
extern char ia64_ivt[];
|
|
|
|
EXPORT_SYMBOL(ia64_ivt);
|