summaryrefslogtreecommitdiff
path: root/patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch')
-rw-r--r--patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch b/patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch
new file mode 100644
index 0000000..ef8f7aa
--- /dev/null
+++ b/patches/glibc/ports-2.10.1/590-sh-set-fpscr-proto.patch
@@ -0,0 +1,13 @@
+
+
+diff -durN glibc-2.10.1.orig/sysdeps/sh/sh4/fpu/fpu_control.h glibc-2.10.1/sysdeps/sh/sh4/fpu/fpu_control.h
+--- glibc-2.10.1.orig/sysdeps/sh/sh4/fpu/fpu_control.h 2001-07-06 06:56:04.000000000 +0200
++++ glibc-2.10.1/sysdeps/sh/sh4/fpu/fpu_control.h 2009-11-13 00:51:26.000000000 +0100
+@@ -45,6 +45,7 @@
+ #define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
+
+ #if defined __GNUC__
++extern void __set_fpscr(unsigned long);
+ #define _FPU_SETCW(cw) __set_fpscr ((cw))
+ #else
+ #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))