--- zzzz-none-000/linux-2.6.32.61/arch/mips/math-emu/kernel_linkage.c 2013-06-10 09:43:48.000000000 +0000 +++ virian-300e-630/linux-2.6.32.61/arch/mips/math-emu/kernel_linkage.c 2011-07-20 07:23:51.000000000 +0000 @@ -29,6 +29,7 @@ #define SIGNALLING_NAN 0x7ff800007ff80000LL +#ifdef CONFIG_MIPS_FPU_EMU void fpu_emulator_init_fpu(void) { static int first = 1; @@ -112,4 +113,35 @@ return err; } -#endif +#endif /* CONFIG_64BIT */ +#else +void fpu_emulator_init_fpu(void) +{ + printk(KERN_INFO "FPU emulator disabled, make sure your toolchain" + "was compiled with software floating point support (soft-float)\n"); + return; +} + +int fpu_emulator_save_context(struct sigcontext __user *sc) +{ + return 0; +} + +int fpu_emulator_restore_context(struct sigcontext __user *sc) +{ + return 0; +} + +int fpu_emulator_save_context32(struct sigcontext32 __user *sc) +{ + return 0; +} + +int fpu_emulator_restore_context32(struct sigcontext32 __user *sc) +{ + return 0; +} + +#ifdef CONFIG_64BIT +#endif /* CONFIG_64BIT */ +#endif /* CONFIG_MIPS_FPU_EMU */