• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _ASM_SCORE_MODULE_H
2 #define _ASM_SCORE_MODULE_H
3 
4 #include <linux/list.h>
5 #include <asm/uaccess.h>
6 #include <asm-generic/module.h>
7 
8 struct mod_arch_specific {
9 	/* Data Bus Error exception tables */
10 	struct list_head dbe_list;
11 	const struct exception_table_entry *dbe_start;
12 	const struct exception_table_entry *dbe_end;
13 };
14 
15 typedef uint8_t Elf64_Byte;		/* Type for a 8-bit quantity. */
16 
17 /* Given an address, look for it in the exception tables. */
18 #ifdef CONFIG_MODULES
19 const struct exception_table_entry *search_module_dbetables(unsigned long addr);
20 #else
21 static inline const struct exception_table_entry
search_module_dbetables(unsigned long addr)22 *search_module_dbetables(unsigned long addr)
23 {
24 	return NULL;
25 }
26 #endif
27 
28 #define MODULE_PROC_FAMILY "SCORE7"
29 #define MODULE_KERNEL_TYPE "32BIT "
30 #define MODULE_KERNEL_SMTC ""
31 
32 #define MODULE_ARCH_VERMAGIC \
33 	MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
34 
35 #endif /* _ASM_SCORE_MODULE_H */
36