Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_ARM_MODULE_H |
| 2 | #define _ASM_ARM_MODULE_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #define Elf_Shdr Elf32_Shdr |
| 5 | #define Elf_Sym Elf32_Sym |
| 6 | #define Elf_Ehdr Elf32_Ehdr |
| 7 | |
Catalin Marinas | 2e1926e | 2009-02-11 13:09:54 +0100 | [diff] [blame] | 8 | struct unwind_table; |
| 9 | |
Catalin Marinas | 2e1926e | 2009-02-11 13:09:54 +0100 | [diff] [blame] | 10 | #ifdef CONFIG_ARM_UNWIND |
Phil Carmody | e5f7772 | 2010-08-19 15:16:37 +0100 | [diff] [blame] | 11 | struct arm_unwind_mapping { |
| 12 | Elf_Shdr *unw_sec; |
| 13 | Elf_Shdr *sec_text; |
| 14 | struct unwind_table *unwind; |
Catalin Marinas | 2e1926e | 2009-02-11 13:09:54 +0100 | [diff] [blame] | 15 | }; |
Phil Carmody | e5f7772 | 2010-08-19 15:16:37 +0100 | [diff] [blame] | 16 | enum { |
| 17 | ARM_SEC_INIT, |
| 18 | ARM_SEC_DEVINIT, |
| 19 | ARM_SEC_CORE, |
Phil Carmody | 09e56a2 | 2010-08-19 15:19:04 +0100 | [diff] [blame^] | 20 | ARM_SEC_EXIT, |
| 21 | ARM_SEC_DEVEXIT, |
Phil Carmody | e5f7772 | 2010-08-19 15:16:37 +0100 | [diff] [blame] | 22 | ARM_SEC_MAX, |
| 23 | }; |
| 24 | struct mod_arch_specific { |
| 25 | struct arm_unwind_mapping map[ARM_SEC_MAX]; |
| 26 | }; |
| 27 | #else |
| 28 | struct mod_arch_specific { |
| 29 | }; |
| 30 | #endif |
Catalin Marinas | 2e1926e | 2009-02-11 13:09:54 +0100 | [diff] [blame] | 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | /* |
| 33 | * Include the ARM architecture version. |
| 34 | */ |
| 35 | #define MODULE_ARCH_VERMAGIC "ARMv" __stringify(__LINUX_ARM_ARCH__) " " |
| 36 | |
| 37 | #endif /* _ASM_ARM_MODULE_H */ |