Changeset 17794


Ignore:
Timestamp:
2009-09-28T22:35:42+02:00 (8 years ago)
Author:
florian
Message:

[kernel] inform users when the in-kernel mips FPU emulator is disabled (#5774)

Location:
trunk/target/linux/generic-2.6
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/patches-2.6.27/024-mips_disable_fpu.patch

    r16659 r17794  
    116116 { 
    117117        static int first = 1; 
    118 @@ -112,4 +113,34 @@ int fpu_emulator_restore_context32(struc 
     118@@ -112,4 +113,36 @@ int fpu_emulator_restore_context32(struc 
    119119  
    120120        return err; 
     
    126126+void fpu_emulator_init_fpu(void) 
    127127+{ 
     128+       printk(KERN_INFO "FPU emulator disabled, make sure your toolchain" 
     129+               "was compiled with software floating point support (soft-float)\n"); 
    128130+       return; 
    129131+} 
  • trunk/target/linux/generic-2.6/patches-2.6.28/024-mips_disable_fpu.patch

    r16934 r17794  
    116116 { 
    117117        static int first = 1; 
    118 @@ -112,4 +113,34 @@ int fpu_emulator_restore_context32(struc 
     118@@ -112,4 +113,36 @@ int fpu_emulator_restore_context32(struc 
    119119  
    120120        return err; 
     
    126126+void fpu_emulator_init_fpu(void) 
    127127+{ 
     128+       printk(KERN_INFO "FPU emulator disabled, make sure your toolchain" 
     129+               "was compiled with software floating point support (soft-float)\n"); 
    128130+       return; 
    129131+} 
  • trunk/target/linux/generic-2.6/patches-2.6.30/025-mips_disable_fpu.patch

    r16697 r17794  
    77Signed-off-by: Florian Fainelli <florian@openwrt.org> 
    88-- 
    9 --- a/arch/mips/Kconfig 
    10 +++ b/arch/mips/Kconfig 
    11 @@ -791,6 +791,17 @@ config I8259 
     9Index: linux-2.6.30.7/arch/mips/Kconfig 
     10=================================================================== 
     11--- linux-2.6.30.7.orig/arch/mips/Kconfig       2009-09-28 08:21:26.000000000 +0200 
     12+++ linux-2.6.30.7/arch/mips/Kconfig    2009-09-28 08:21:31.000000000 +0200 
     13@@ -791,6 +791,17 @@ 
    1214 config MIPS_BONITO64 
    1315        bool 
     
    2729        bool 
    2830  
    29 --- a/arch/mips/math-emu/Makefile 
    30 +++ b/arch/mips/math-emu/Makefile 
     31Index: linux-2.6.30.7/arch/mips/math-emu/Makefile 
     32=================================================================== 
     33--- linux-2.6.30.7.orig/arch/mips/math-emu/Makefile     2009-09-28 08:21:26.000000000 +0200 
     34+++ linux-2.6.30.7/arch/mips/math-emu/Makefile  2009-09-28 08:21:31.000000000 +0200 
    3135@@ -2,12 +2,14 @@ 
    3236 # Makefile for the Linux/MIPS kernel FPU emulation. 
     
    4650  
    4751 EXTRA_CFLAGS += -Werror 
    48 --- a/arch/mips/math-emu/cp1emu.c 
    49 +++ b/arch/mips/math-emu/cp1emu.c 
     52Index: linux-2.6.30.7/arch/mips/math-emu/cp1emu.c 
     53=================================================================== 
     54--- linux-2.6.30.7.orig/arch/mips/math-emu/cp1emu.c     2009-09-28 08:21:26.000000000 +0200 
     55+++ linux-2.6.30.7/arch/mips/math-emu/cp1emu.c  2009-09-28 08:21:31.000000000 +0200 
    5056@@ -56,6 +56,12 @@ 
    5157 #endif 
     
    6167  
    6268 static int fpu_emu(struct pt_regs *, struct mips_fpu_struct *, 
    63 @@ -66,10 +72,6 @@ static int fpux_emu(struct pt_regs *, 
     69@@ -66,10 +72,6 @@ 
    6470        struct mips_fpu_struct *, mips_instruction); 
    6571 #endif 
     
    7278  
    7379 #define FPCREG_RID     0       /* $0  = revision id */ 
    74 @@ -1273,6 +1275,13 @@ int fpu_emulator_cop1Handler(struct pt_r 
     80@@ -1273,6 +1275,13 @@ 
    7581  
    7682        return sig; 
     
    8692 #ifdef CONFIG_DEBUG_FS 
    8793 extern struct dentry *mips_debugfs_dir; 
    88 --- a/arch/mips/math-emu/dsemul.c 
    89 +++ b/arch/mips/math-emu/dsemul.c 
    90 @@ -109,6 +109,7 @@ int mips_dsemul(struct pt_regs *regs, mi 
     94Index: linux-2.6.30.7/arch/mips/math-emu/dsemul.c 
     95=================================================================== 
     96--- linux-2.6.30.7.orig/arch/mips/math-emu/dsemul.c     2009-09-28 08:21:26.000000000 +0200 
     97+++ linux-2.6.30.7/arch/mips/math-emu/dsemul.c  2009-09-28 08:21:31.000000000 +0200 
     98@@ -109,6 +109,7 @@ 
    9199        return SIGILL;          /* force out of emulation loop */ 
    92100 } 
     
    96104 { 
    97105        struct emuframe __user *fr; 
    98 @@ -165,3 +166,9 @@ int do_dsemulret(struct pt_regs *xcp) 
     106@@ -165,3 +166,9 @@ 
    99107  
    100108        return 1; 
     
    106114+} 
    107115+#endif /* CONFIG_MIPS_FPU_EMU */ 
    108 --- a/arch/mips/math-emu/kernel_linkage.c 
    109 +++ b/arch/mips/math-emu/kernel_linkage.c 
     116Index: linux-2.6.30.7/arch/mips/math-emu/kernel_linkage.c 
     117=================================================================== 
     118--- linux-2.6.30.7.orig/arch/mips/math-emu/kernel_linkage.c     2009-09-28 08:21:26.000000000 +0200 
     119+++ linux-2.6.30.7/arch/mips/math-emu/kernel_linkage.c  2009-09-28 08:22:36.000000000 +0200 
    110120@@ -29,6 +29,7 @@ 
    111121  
     
    116126 { 
    117127        static int first = 1; 
    118 @@ -112,4 +113,34 @@ int fpu_emulator_restore_context32(struc 
     128@@ -112,4 +113,36 @@ 
    119129  
    120130        return err; 
     
    126136+void fpu_emulator_init_fpu(void) 
    127137+{ 
     138+       printk(KERN_INFO "FPU emulator disabled, make sure your toolchain" 
     139+               "was compiled with software floating point support (soft-float)\n"); 
    128140+       return; 
    129141+} 
  • trunk/target/linux/generic-2.6/patches-2.6.31/025-mips_disable_fpu.patch

    r17351 r17794  
    116116 { 
    117117        static int first = 1; 
    118 @@ -112,4 +113,34 @@ int fpu_emulator_restore_context32(struc 
     118@@ -112,4 +113,36 @@ int fpu_emulator_restore_context32(struc 
    119119  
    120120        return err; 
     
    126126+void fpu_emulator_init_fpu(void) 
    127127+{ 
     128+       printk(KERN_INFO "FPU emulator disabled, make sure your toolchain" 
     129+               "was compiled with software floating point support (soft-float)\n"); 
    128130+       return; 
    129131+} 
Note: See TracChangeset for help on using the changeset viewer.