[kernel] inform users when the in-kernel mips FPU emulator is disabled (#5774)
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.28 / 024-mips_disable_fpu.patch
index ded4b2125abb64eeb0b43872f009b6f5de897a33..dfa4ba2e041c9e31c49ffd4f9eb564768cbe8e10 100644 (file)
@@ -115,7 +115,7 @@ Signed-off-by: Florian Fainelli <florian@openwrt.org>
  void fpu_emulator_init_fpu(void)
  {
        static int first = 1;
-@@ -112,4 +113,34 @@ int fpu_emulator_restore_context32(struc
+@@ -112,4 +113,36 @@ int fpu_emulator_restore_context32(struc
  
        return err;
  }
@@ -125,6 +125,8 @@ Signed-off-by: Florian Fainelli <florian@openwrt.org>
 +
 +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;
 +}
 +