Merge tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / score / include / asm / module.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_MODULE_H
3 #define _ASM_SCORE_MODULE_H
4
5 #include <linux/list.h>
6 #include <asm/extable.h>
7 #include <asm-generic/module.h>
8
9 struct mod_arch_specific {
10         /* Data Bus Error exception tables */
11         struct list_head dbe_list;
12         const struct exception_table_entry *dbe_start;
13         const struct exception_table_entry *dbe_end;
14 };
15
16 typedef uint8_t Elf64_Byte;             /* Type for a 8-bit quantity. */
17
18 /* Given an address, look for it in the exception tables. */
19 #ifdef CONFIG_MODULES
20 const struct exception_table_entry *search_module_dbetables(unsigned long addr);
21 #else
22 static inline const struct exception_table_entry
23 *search_module_dbetables(unsigned long addr)
24 {
25         return NULL;
26 }
27 #endif
28
29 #define MODULE_PROC_FAMILY "SCORE7"
30 #define MODULE_KERNEL_TYPE "32BIT "
31 #define MODULE_KERNEL_SMTC ""
32
33 #define MODULE_ARCH_VERMAGIC \
34         MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
35
36 #endif /* _ASM_SCORE_MODULE_H */