efivars: Refactor sanity checking code into separate function
[linux/fpc-iii.git] / arch / score / include / asm / module.h
blobabf395bbfabadc23524e36cb169511a088563007
1 #ifndef _ASM_SCORE_MODULE_H
2 #define _ASM_SCORE_MODULE_H
4 #include <linux/list.h>
5 #include <asm/uaccess.h>
6 #include <asm-generic/module.h>
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;
15 typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
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
22 *search_module_dbetables(unsigned long addr)
24 return NULL;
26 #endif
28 #define MODULE_PROC_FAMILY "SCORE7"
29 #define MODULE_KERNEL_TYPE "32BIT "
30 #define MODULE_KERNEL_SMTC ""
32 #define MODULE_ARCH_VERMAGIC \
33 MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
35 #endif /* _ASM_SCORE_MODULE_H */