diff options
Diffstat (limited to 'arch/score/include/asm/module.h')
-rw-r--r-- | arch/score/include/asm/module.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/score/include/asm/module.h b/arch/score/include/asm/module.h new file mode 100644 index 000000000000..f0b5dc0bd023 --- /dev/null +++ b/arch/score/include/asm/module.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef _ASM_SCORE_MODULE_H | ||
2 | #define _ASM_SCORE_MODULE_H | ||
3 | |||
4 | #include <linux/list.h> | ||
5 | #include <asm/uaccess.h> | ||
6 | |||
7 | struct mod_arch_specific { | ||
8 | /* Data Bus Error exception tables */ | ||
9 | struct list_head dbe_list; | ||
10 | const struct exception_table_entry *dbe_start; | ||
11 | const struct exception_table_entry *dbe_end; | ||
12 | }; | ||
13 | |||
14 | typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */ | ||
15 | |||
16 | #define Elf_Shdr Elf32_Shdr | ||
17 | #define Elf_Sym Elf32_Sym | ||
18 | #define Elf_Ehdr Elf32_Ehdr | ||
19 | #define Elf_Addr Elf32_Addr | ||
20 | |||
21 | /* Given an address, look for it in the exception tables. */ | ||
22 | #ifdef CONFIG_MODULES | ||
23 | const struct exception_table_entry *search_module_dbetables(unsigned long addr); | ||
24 | #else | ||
25 | static inline const struct exception_table_entry | ||
26 | *search_module_dbetables(unsigned long addr) | ||
27 | { | ||
28 | return NULL; | ||
29 | } | ||
30 | #endif | ||
31 | |||
32 | #define MODULE_PROC_FAMILY "SCORE7" | ||
33 | #define MODULE_KERNEL_TYPE "32BIT " | ||
34 | #define MODULE_KERNEL_SMTC "" | ||
35 | |||
36 | #define MODULE_ARCH_VERMAGIC \ | ||
37 | MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC | ||
38 | |||
39 | #endif /* _ASM_SCORE_MODULE_H */ | ||