1 #ifndef _ASM_X86_MODULE_H 2 #define _ASM_X86_MODULE_H 3 4 /* x86_32/64 are simple */ 5 struct mod_arch_specific {}; 6 7 #ifdef CONFIG_X86_32 8 # define Elf_Shdr Elf32_Shdr 9 # define Elf_Sym Elf32_Sym 10 # define Elf_Ehdr Elf32_Ehdr 11 #else 12 # define Elf_Shdr Elf64_Shdr 13 # define Elf_Sym Elf64_Sym 14 # define Elf_Ehdr Elf64_Ehdr 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_MWINCHIP3D 56 #define MODULE_PROC_FAMILY "WINCHIP3D " 57 #elif defined CONFIG_MCYRIXIII 58 #define MODULE_PROC_FAMILY "CYRIXIII " 59 #elif defined CONFIG_MVIAC3_2 60 #define MODULE_PROC_FAMILY "VIAC3-2 " 61 #elif defined CONFIG_MVIAC7 62 #define MODULE_PROC_FAMILY "VIAC7 " 63 #elif defined CONFIG_MGEODEGX1 64 #define MODULE_PROC_FAMILY "GEODEGX1 " 65 #elif defined CONFIG_MGEODE_LX 66 #define MODULE_PROC_FAMILY "GEODE " 67 #else 68 #error unknown processor family 69 #endif 70 71 #ifdef CONFIG_X86_32 72 # ifdef CONFIG_4KSTACKS 73 # define MODULE_STACKSIZE "4KSTACKS " 74 # else 75 # define MODULE_STACKSIZE "" 76 # endif 77 # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE 78 #endif 79 80 #endif /* _ASM_X86_MODULE_H */ 81