Full support for Ginger Console
[linux-ginger.git] / arch / score / include / asm / module.h
blobf0b5dc0bd023d738ee80f7fb936f1a5e681c330d
1 #ifndef _ASM_SCORE_MODULE_H
2 #define _ASM_SCORE_MODULE_H
4 #include <linux/list.h>
5 #include <asm/uaccess.h>
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;
14 typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
16 #define Elf_Shdr Elf32_Shdr
17 #define Elf_Sym Elf32_Sym
18 #define Elf_Ehdr Elf32_Ehdr
19 #define Elf_Addr Elf32_Addr
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)
28 return NULL;
30 #endif
32 #define MODULE_PROC_FAMILY "SCORE7"
33 #define MODULE_KERNEL_TYPE "32BIT "
34 #define MODULE_KERNEL_SMTC ""
36 #define MODULE_ARCH_VERMAGIC \
37 MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
39 #endif /* _ASM_SCORE_MODULE_H */