aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches-0.9.7
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-11-23 21:15:11 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-11-23 21:15:11 +0000
commit970756c6d794dcf5fafd329e51013cc09b7c2ec4 (patch)
treee80cf41714f27ae7b0c80a2a4cb88e16cf1f0c7a /toolchain/musl/patches-0.9.7
parentb0b994cf76a2e9b79521b3179823921b31f62b4a (diff)
downloadupstream-970756c6d794dcf5fafd329e51013cc09b7c2ec4.tar.gz
upstream-970756c6d794dcf5fafd329e51013cc09b7c2ec4.tar.bz2
upstream-970756c6d794dcf5fafd329e51013cc09b7c2ec4.zip
musl: disable hardware FPU registers usage
This was crashing applications, thanks to Rich Felker for the suggestion. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34317
Diffstat (limited to 'toolchain/musl/patches-0.9.7')
-rw-r--r--toolchain/musl/patches-0.9.7/002-no_mips_fpu.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/toolchain/musl/patches-0.9.7/002-no_mips_fpu.patch b/toolchain/musl/patches-0.9.7/002-no_mips_fpu.patch
new file mode 100644
index 0000000000..92af325af8
--- /dev/null
+++ b/toolchain/musl/patches-0.9.7/002-no_mips_fpu.patch
@@ -0,0 +1,49 @@
+diff -urN musl-0.9.7/src/setjmp/mips/longjmp.s musl-0.9.7.new/src/setjmp/mips/longjmp.s
+--- musl-0.9.7/src/setjmp/mips/longjmp.s 2012-11-23 17:03:07.000000000 +0100
++++ musl-0.9.7.new/src/setjmp/mips/longjmp.s 2012-11-23 21:52:57.353668480 +0100
+@@ -10,21 +10,7 @@
+ bne $2, $0, 1f
+ nop
+ addu $2, $2, 1
+-1: lw $8, 48($4)
+- ctc1 $8, $31
+- lwc1 $20, 56($4)
+- lwc1 $21, 60($4)
+- lwc1 $22, 64($4)
+- lwc1 $23, 68($4)
+- lwc1 $24, 72($4)
+- lwc1 $25, 76($4)
+- lwc1 $26, 80($4)
+- lwc1 $27, 84($4)
+- lwc1 $28, 88($4)
+- lwc1 $29, 92($4)
+- lwc1 $30, 96($4)
+- lwc1 $31, 100($4)
+- lw $ra, 0($4)
++1: lw $ra, 0($4)
+ lw $sp, 4($4)
+ lw $16, 8($4)
+ lw $17, 12($4)
+diff -urN musl-0.9.7/src/setjmp/mips/setjmp.s musl-0.9.7.new/src/setjmp/mips/setjmp.s
+--- musl-0.9.7/src/setjmp/mips/setjmp.s 2012-11-23 17:03:07.000000000 +0100
++++ musl-0.9.7.new/src/setjmp/mips/setjmp.s 2012-11-23 21:52:33.713667876 +0100
+@@ -21,19 +21,5 @@
+ sw $23, 36($4)
+ sw $30, 40($4)
+ sw $28, 44($4)
+- cfc1 $8, $31
+- sw $8, 48($4)
+- swc1 $20, 56($4)
+- swc1 $21, 60($4)
+- swc1 $22, 64($4)
+- swc1 $23, 68($4)
+- swc1 $24, 72($4)
+- swc1 $25, 76($4)
+- swc1 $26, 80($4)
+- swc1 $27, 84($4)
+- swc1 $28, 88($4)
+- swc1 $29, 92($4)
+- swc1 $30, 96($4)
+- swc1 $31, 100($4)
+ jr $ra
+ li $2, 0