Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / score / include / asm / module.h
blob33777ed32e9e765cbebb9711e88721420250a841
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_MODULE_H
3 #define _ASM_SCORE_MODULE_H
5 #include <linux/list.h>
6 #include <asm/extable.h>
7 #include <asm-generic/module.h>
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;
16 typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
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)
25 return NULL;
27 #endif
29 #define MODULE_PROC_FAMILY "SCORE7"
30 #define MODULE_KERNEL_TYPE "32BIT "
31 #define MODULE_KERNEL_SMTC ""
33 #define MODULE_ARCH_VERMAGIC \
34 MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
36 #endif /* _ASM_SCORE_MODULE_H */