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