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. */
20 const struct exception_table_entry
*search_module_dbetables(unsigned long addr
);
22 static inline const struct exception_table_entry
23 *search_module_dbetables(unsigned long addr
)
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 */