Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/elf_machdep.c
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
int | int | ||||
elf_cpu_unload_file(linker_file_t lf __unused) | elf_cpu_unload_file(linker_file_t lf __unused) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
int | |||||
elf_get_eflags(void) | |||||
{ | |||||
int eflags = 0; | |||||
#if defined(CPU_MIPS4KC) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_MIPS24KC) | |||||
eflags |= EF_MIPS_ARCH_32R2; | |||||
#elif defined(CPU_MIPS74KC) | |||||
eflags |= EF_MIPS_ARCH_32R2; | |||||
#elif defined(CPU_MIPS1004KC) | |||||
eflags |= EF_MIPS_ARCH_32R2; | |||||
#elif defined(CPU_MIPS32) | |||||
eflags |= EF_MIPS_ARCH_32R2; | |||||
#elif defined(CPU_MIPS64) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_CNMIPS) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_RMI) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_SB1) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_BERI) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#elif defined(CPU_NLM) | |||||
eflags |= EF_MIPS_ARCH_64R2; | |||||
#else | |||||
eflags |= EF_MIPS_ARCH_1; | |||||
#endif | |||||
imp: This is almost certainly wrong. It's about the binary that's being executed, not what the… | |||||
return (eflags); | |||||
} |
This is almost certainly wrong. It's about the binary that's being executed, not what the kernel is compiled for.