2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _ASM_ARM_MODULE_H
|
|
|
|
#define _ASM_ARM_MODULE_H
|
|
|
|
|
|
|
|
#define Elf_Shdr Elf32_Shdr
|
|
|
|
#define Elf_Sym Elf32_Sym
|
|
|
|
#define Elf_Ehdr Elf32_Ehdr
|
|
|
|
|
2009-02-11 20:09:54 +08:00
|
|
|
struct unwind_table;
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARM_UNWIND
|
2010-08-19 22:16:37 +08:00
|
|
|
struct arm_unwind_mapping {
|
|
|
|
Elf_Shdr *unw_sec;
|
|
|
|
Elf_Shdr *sec_text;
|
|
|
|
struct unwind_table *unwind;
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
ARM_SEC_INIT,
|
|
|
|
ARM_SEC_DEVINIT,
|
|
|
|
ARM_SEC_CORE,
|
2010-08-19 22:19:04 +08:00
|
|
|
ARM_SEC_EXIT,
|
|
|
|
ARM_SEC_DEVEXIT,
|
2010-08-19 22:16:37 +08:00
|
|
|
ARM_SEC_MAX,
|
|
|
|
};
|
|
|
|
struct mod_arch_specific {
|
|
|
|
struct arm_unwind_mapping map[ARM_SEC_MAX];
|
2009-02-11 20:09:54 +08:00
|
|
|
};
|
2010-08-19 22:16:37 +08:00
|
|
|
#else
|
|
|
|
struct mod_arch_specific {
|
|
|
|
};
|
|
|
|
#endif
|
2009-02-11 20:09:54 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Include the ARM architecture version.
|
|
|
|
*/
|
|
|
|
#define MODULE_ARCH_VERMAGIC "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
|
|
|
|
|
|
|
|
#endif /* _ASM_ARM_MODULE_H */
|