diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2007-12-18 06:58:10 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:43 -0500 |
commit | 0ddc9cc8fdfe3df7a90557e66069e3da2c584725 (patch) | |
tree | 21f5a092bc55f7d36d9b431ef4093ef107786491 /include/asm-x86/module.h | |
parent | e7b5e11eaaa8ef93a34e68016de51152d0d62911 (diff) |
x86: unify module_{32|64}.h
This adds one case to the MODULE_PROC_FAMILY block testing
for X86_64. There are no new things defined on X86_64 than
there were before.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/module.h')
-rw-r--r-- | include/asm-x86/module.h | 81 |
1 files changed, 79 insertions, 2 deletions
diff --git a/include/asm-x86/module.h b/include/asm-x86/module.h index 2b2f18d8a531..bfedb247871c 100644 --- a/include/asm-x86/module.h +++ b/include/asm-x86/module.h | |||
@@ -1,5 +1,82 @@ | |||
1 | #ifndef _ASM_MODULE_H | ||
2 | #define _ASM_MODULE_H | ||
3 | |||
4 | /* x86_32/64 are simple */ | ||
5 | struct mod_arch_specific {}; | ||
6 | |||
1 | #ifdef CONFIG_X86_32 | 7 | #ifdef CONFIG_X86_32 |
2 | # include "module_32.h" | 8 | # define Elf_Shdr Elf32_Shdr |
9 | # define Elf_Sym Elf32_Sym | ||
10 | # define Elf_Ehdr Elf32_Ehdr | ||
3 | #else | 11 | #else |
4 | # include "module_64.h" | 12 | # define Elf_Shdr Elf64_Shdr |
13 | # define Elf_Sym Elf64_Sym | ||
14 | # define Elf_Ehdr Elf64_Ehdr | ||
5 | #endif | 15 | #endif |
16 | |||
17 | #ifdef CONFIG_X86_64 | ||
18 | /* X86_64 does not define MODULE_PROC_FAMILY */ | ||
19 | #elif defined CONFIG_M386 | ||
20 | #define MODULE_PROC_FAMILY "386 " | ||
21 | #elif defined CONFIG_M486 | ||
22 | #define MODULE_PROC_FAMILY "486 " | ||
23 | #elif defined CONFIG_M586 | ||
24 | #define MODULE_PROC_FAMILY "586 " | ||
25 | #elif defined CONFIG_M586TSC | ||
26 | #define MODULE_PROC_FAMILY "586TSC " | ||
27 | #elif defined CONFIG_M586MMX | ||
28 | #define MODULE_PROC_FAMILY "586MMX " | ||
29 | #elif defined CONFIG_MCORE2 | ||
30 | #define MODULE_PROC_FAMILY "CORE2 " | ||
31 | #elif defined CONFIG_M686 | ||
32 | #define MODULE_PROC_FAMILY "686 " | ||
33 | #elif defined CONFIG_MPENTIUMII | ||
34 | #define MODULE_PROC_FAMILY "PENTIUMII " | ||
35 | #elif defined CONFIG_MPENTIUMIII | ||
36 | #define MODULE_PROC_FAMILY "PENTIUMIII " | ||
37 | #elif defined CONFIG_MPENTIUMM | ||
38 | #define MODULE_PROC_FAMILY "PENTIUMM " | ||
39 | #elif defined CONFIG_MPENTIUM4 | ||
40 | #define MODULE_PROC_FAMILY "PENTIUM4 " | ||
41 | #elif defined CONFIG_MK6 | ||
42 | #define MODULE_PROC_FAMILY "K6 " | ||
43 | #elif defined CONFIG_MK7 | ||
44 | #define MODULE_PROC_FAMILY "K7 " | ||
45 | #elif defined CONFIG_MK8 | ||
46 | #define MODULE_PROC_FAMILY "K8 " | ||
47 | #elif defined CONFIG_X86_ELAN | ||
48 | #define MODULE_PROC_FAMILY "ELAN " | ||
49 | #elif defined CONFIG_MCRUSOE | ||
50 | #define MODULE_PROC_FAMILY "CRUSOE " | ||
51 | #elif defined CONFIG_MEFFICEON | ||
52 | #define MODULE_PROC_FAMILY "EFFICEON " | ||
53 | #elif defined CONFIG_MWINCHIPC6 | ||
54 | #define MODULE_PROC_FAMILY "WINCHIPC6 " | ||
55 | #elif defined CONFIG_MWINCHIP2 | ||
56 | #define MODULE_PROC_FAMILY "WINCHIP2 " | ||
57 | #elif defined CONFIG_MWINCHIP3D | ||
58 | #define MODULE_PROC_FAMILY "WINCHIP3D " | ||
59 | #elif defined CONFIG_MCYRIXIII | ||
60 | #define MODULE_PROC_FAMILY "CYRIXIII " | ||
61 | #elif defined CONFIG_MVIAC3_2 | ||
62 | #define MODULE_PROC_FAMILY "VIAC3-2 " | ||
63 | #elif defined CONFIG_MVIAC7 | ||
64 | #define MODULE_PROC_FAMILY "VIAC7 " | ||
65 | #elif defined CONFIG_MGEODEGX1 | ||
66 | #define MODULE_PROC_FAMILY "GEODEGX1 " | ||
67 | #elif defined CONFIG_MGEODE_LX | ||
68 | #define MODULE_PROC_FAMILY "GEODE " | ||
69 | #else | ||
70 | #error unknown processor family | ||
71 | #endif | ||
72 | |||
73 | #ifdef CONFIG_X86_32 | ||
74 | # ifdef CONFIG_4KSTACKS | ||
75 | # define MODULE_STACKSIZE "4KSTACKS " | ||
76 | # else | ||
77 | # define MODULE_STACKSIZE "" | ||
78 | # endif | ||
79 | # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE | ||
80 | #endif | ||
81 | |||
82 | #endif /* _ASM_MODULE_H */ | ||