xref: /openbmc/linux/arch/x86/include/asm/module.h (revision 6f69e2a3)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_MODULE_H
3 #define _ASM_X86_MODULE_H
4 
5 #include <asm-generic/module.h>
6 #include <asm/orc_types.h>
7 
8 struct mod_arch_specific {
9 #ifdef CONFIG_UNWINDER_ORC
10 	unsigned int num_orcs;
11 	int *orc_unwind_ip;
12 	struct orc_entry *orc_unwind;
13 #endif
14 };
15 
16 #ifdef CONFIG_X86_64
17 /* X86_64 does not define MODULE_PROC_FAMILY */
18 #elif defined CONFIG_M486SX
19 #define MODULE_PROC_FAMILY "486SX "
20 #elif defined CONFIG_M486
21 #define MODULE_PROC_FAMILY "486 "
22 #elif defined CONFIG_M586
23 #define MODULE_PROC_FAMILY "586 "
24 #elif defined CONFIG_M586TSC
25 #define MODULE_PROC_FAMILY "586TSC "
26 #elif defined CONFIG_M586MMX
27 #define MODULE_PROC_FAMILY "586MMX "
28 #elif defined CONFIG_MCORE2
29 #define MODULE_PROC_FAMILY "CORE2 "
30 #elif defined CONFIG_MATOM
31 #define MODULE_PROC_FAMILY "ATOM "
32 #elif defined CONFIG_M686
33 #define MODULE_PROC_FAMILY "686 "
34 #elif defined CONFIG_MPENTIUMII
35 #define MODULE_PROC_FAMILY "PENTIUMII "
36 #elif defined CONFIG_MPENTIUMIII
37 #define MODULE_PROC_FAMILY "PENTIUMIII "
38 #elif defined CONFIG_MPENTIUMM
39 #define MODULE_PROC_FAMILY "PENTIUMM "
40 #elif defined CONFIG_MPENTIUM4
41 #define MODULE_PROC_FAMILY "PENTIUM4 "
42 #elif defined CONFIG_MK6
43 #define MODULE_PROC_FAMILY "K6 "
44 #elif defined CONFIG_MK7
45 #define MODULE_PROC_FAMILY "K7 "
46 #elif defined CONFIG_MK8
47 #define MODULE_PROC_FAMILY "K8 "
48 #elif defined CONFIG_MELAN
49 #define MODULE_PROC_FAMILY "ELAN "
50 #elif defined CONFIG_MCRUSOE
51 #define MODULE_PROC_FAMILY "CRUSOE "
52 #elif defined CONFIG_MEFFICEON
53 #define MODULE_PROC_FAMILY "EFFICEON "
54 #elif defined CONFIG_MWINCHIPC6
55 #define MODULE_PROC_FAMILY "WINCHIPC6 "
56 #elif defined CONFIG_MWINCHIP3D
57 #define MODULE_PROC_FAMILY "WINCHIP3D "
58 #elif defined CONFIG_MCYRIXIII
59 #define MODULE_PROC_FAMILY "CYRIXIII "
60 #elif defined CONFIG_MVIAC3_2
61 #define MODULE_PROC_FAMILY "VIAC3-2 "
62 #elif defined CONFIG_MVIAC7
63 #define MODULE_PROC_FAMILY "VIAC7 "
64 #elif defined CONFIG_MGEODEGX1
65 #define MODULE_PROC_FAMILY "GEODEGX1 "
66 #elif defined CONFIG_MGEODE_LX
67 #define MODULE_PROC_FAMILY "GEODE "
68 #else
69 #error unknown processor family
70 #endif
71 
72 #ifdef CONFIG_X86_32
73 # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
74 #endif
75 
76 #endif /* _ASM_X86_MODULE_H */
77