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