Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_I386_MODULE_H |
| 2 | #define _ASM_I386_MODULE_H |
| 3 | |
| 4 | /* x86 is simple */ |
| 5 | struct mod_arch_specific |
| 6 | { |
| 7 | }; |
| 8 | |
| 9 | #define Elf_Shdr Elf32_Shdr |
| 10 | #define Elf_Sym Elf32_Sym |
| 11 | #define Elf_Ehdr Elf32_Ehdr |
| 12 | |
| 13 | #ifdef CONFIG_M386 |
| 14 | #define MODULE_PROC_FAMILY "386 " |
| 15 | #elif defined CONFIG_M486 |
| 16 | #define MODULE_PROC_FAMILY "486 " |
| 17 | #elif defined CONFIG_M586 |
| 18 | #define MODULE_PROC_FAMILY "586 " |
| 19 | #elif defined CONFIG_M586TSC |
| 20 | #define MODULE_PROC_FAMILY "586TSC " |
| 21 | #elif defined CONFIG_M586MMX |
| 22 | #define MODULE_PROC_FAMILY "586MMX " |
Andi Kleen | c55d92d | 2006-12-07 02:14:09 +0100 | [diff] [blame] | 23 | #elif defined CONFIG_MCORE2 |
| 24 | #define MODULE_PROC_FAMILY "CORE2 " |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #elif defined CONFIG_M686 |
| 26 | #define MODULE_PROC_FAMILY "686 " |
| 27 | #elif defined CONFIG_MPENTIUMII |
| 28 | #define MODULE_PROC_FAMILY "PENTIUMII " |
| 29 | #elif defined CONFIG_MPENTIUMIII |
| 30 | #define MODULE_PROC_FAMILY "PENTIUMIII " |
| 31 | #elif defined CONFIG_MPENTIUMM |
| 32 | #define MODULE_PROC_FAMILY "PENTIUMM " |
| 33 | #elif defined CONFIG_MPENTIUM4 |
| 34 | #define MODULE_PROC_FAMILY "PENTIUM4 " |
| 35 | #elif defined CONFIG_MK6 |
| 36 | #define MODULE_PROC_FAMILY "K6 " |
| 37 | #elif defined CONFIG_MK7 |
| 38 | #define MODULE_PROC_FAMILY "K7 " |
| 39 | #elif defined CONFIG_MK8 |
| 40 | #define MODULE_PROC_FAMILY "K8 " |
| 41 | #elif defined CONFIG_X86_ELAN |
| 42 | #define MODULE_PROC_FAMILY "ELAN " |
| 43 | #elif defined CONFIG_MCRUSOE |
| 44 | #define MODULE_PROC_FAMILY "CRUSOE " |
| 45 | #elif defined CONFIG_MEFFICEON |
| 46 | #define MODULE_PROC_FAMILY "EFFICEON " |
| 47 | #elif defined CONFIG_MWINCHIPC6 |
| 48 | #define MODULE_PROC_FAMILY "WINCHIPC6 " |
| 49 | #elif defined CONFIG_MWINCHIP2 |
| 50 | #define MODULE_PROC_FAMILY "WINCHIP2 " |
| 51 | #elif defined CONFIG_MWINCHIP3D |
| 52 | #define MODULE_PROC_FAMILY "WINCHIP3D " |
| 53 | #elif defined CONFIG_MCYRIXIII |
| 54 | #define MODULE_PROC_FAMILY "CYRIXIII " |
| 55 | #elif defined CONFIG_MVIAC3_2 |
| 56 | #define MODULE_PROC_FAMILY "VIAC3-2 " |
Simon Arlott | 0949be3 | 2007-05-02 19:27:05 +0200 | [diff] [blame] | 57 | #elif defined CONFIG_MVIAC7 |
| 58 | #define MODULE_PROC_FAMILY "VIAC7 " |
Jordan Crouse | f90b811 | 2006-01-06 00:12:14 -0800 | [diff] [blame] | 59 | #elif defined CONFIG_MGEODEGX1 |
Kianusch Sayah Karadji | 4713741 | 2005-05-05 16:16:17 -0700 | [diff] [blame] | 60 | #define MODULE_PROC_FAMILY "GEODEGX1 " |
Jordan Crouse | f90b811 | 2006-01-06 00:12:14 -0800 | [diff] [blame] | 61 | #elif defined CONFIG_MGEODE_LX |
| 62 | #define MODULE_PROC_FAMILY "GEODE " |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | #else |
| 64 | #error unknown processor family |
| 65 | #endif |
| 66 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | #ifdef CONFIG_4KSTACKS |
| 68 | #define MODULE_STACKSIZE "4KSTACKS " |
| 69 | #else |
| 70 | #define MODULE_STACKSIZE "" |
| 71 | #endif |
| 72 | |
Adrian Bunk | a1a70c2 | 2006-12-07 02:14:12 +0100 | [diff] [blame] | 73 | #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | |
| 75 | #endif /* _ASM_I386_MODULE_H */ |