blob: 67763c5d8b4ecc4f2e20541bcc73640ed03a8c12 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_MODULE_H
2#define _ASM_X86_MODULE_H
Harvey Harrison0ddc9cc2007-12-18 03:58:10 -08003
Arnd Bergmann73a2d092009-06-18 21:48:20 +02004#include <asm-generic/module.h>
Harvey Harrison0ddc9cc2007-12-18 03:58:10 -08005
6#ifdef CONFIG_X86_64
7/* X86_64 does not define MODULE_PROC_FAMILY */
8#elif defined CONFIG_M386
9#define MODULE_PROC_FAMILY "386 "
10#elif defined CONFIG_M486
11#define MODULE_PROC_FAMILY "486 "
12#elif defined CONFIG_M586
13#define MODULE_PROC_FAMILY "586 "
14#elif defined CONFIG_M586TSC
15#define MODULE_PROC_FAMILY "586TSC "
16#elif defined CONFIG_M586MMX
17#define MODULE_PROC_FAMILY "586MMX "
18#elif defined CONFIG_MCORE2
19#define MODULE_PROC_FAMILY "CORE2 "
Tobias Doerffel366d19e2009-08-21 23:06:23 +020020#elif defined CONFIG_MATOM
21#define MODULE_PROC_FAMILY "ATOM "
Harvey Harrison0ddc9cc2007-12-18 03:58:10 -080022#elif defined CONFIG_M686
23#define MODULE_PROC_FAMILY "686 "
24#elif defined CONFIG_MPENTIUMII
25#define MODULE_PROC_FAMILY "PENTIUMII "
26#elif defined CONFIG_MPENTIUMIII
27#define MODULE_PROC_FAMILY "PENTIUMIII "
28#elif defined CONFIG_MPENTIUMM
29#define MODULE_PROC_FAMILY "PENTIUMM "
30#elif defined CONFIG_MPENTIUM4
31#define MODULE_PROC_FAMILY "PENTIUM4 "
32#elif defined CONFIG_MK6
33#define MODULE_PROC_FAMILY "K6 "
34#elif defined CONFIG_MK7
35#define MODULE_PROC_FAMILY "K7 "
36#elif defined CONFIG_MK8
37#define MODULE_PROC_FAMILY "K8 "
38#elif defined CONFIG_X86_ELAN
39#define MODULE_PROC_FAMILY "ELAN "
40#elif defined CONFIG_MCRUSOE
41#define MODULE_PROC_FAMILY "CRUSOE "
42#elif defined CONFIG_MEFFICEON
43#define MODULE_PROC_FAMILY "EFFICEON "
44#elif defined CONFIG_MWINCHIPC6
45#define MODULE_PROC_FAMILY "WINCHIPC6 "
Harvey Harrison0ddc9cc2007-12-18 03:58:10 -080046#elif defined CONFIG_MWINCHIP3D
47#define MODULE_PROC_FAMILY "WINCHIP3D "
48#elif defined CONFIG_MCYRIXIII
49#define MODULE_PROC_FAMILY "CYRIXIII "
50#elif defined CONFIG_MVIAC3_2
51#define MODULE_PROC_FAMILY "VIAC3-2 "
52#elif defined CONFIG_MVIAC7
53#define MODULE_PROC_FAMILY "VIAC7 "
54#elif defined CONFIG_MGEODEGX1
55#define MODULE_PROC_FAMILY "GEODEGX1 "
56#elif defined CONFIG_MGEODE_LX
57#define MODULE_PROC_FAMILY "GEODE "
58#else
59#error unknown processor family
60#endif
61
62#ifdef CONFIG_X86_32
Christoph Hellwigdcfa7262010-06-28 14:16:14 +020063# define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
Harvey Harrison0ddc9cc2007-12-18 03:58:10 -080064#endif
65
H. Peter Anvin1965aae2008-10-22 22:26:29 -070066#endif /* _ASM_X86_MODULE_H */