aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sh
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2014-01-23 14:22:58 +0900
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2014-01-23 14:22:58 +0900
commit7007c661ad737b3c8fd7855791cd52bcac6d7a0b (patch)
treeb4ade3f72c475258c8c82b10b07e13808abd1820 /sysdeps/sh
parent0f0c35e46e9a12459a5ca64be46b6e73aa8d19d7 (diff)
downloadglibc-7007c661ad737b3c8fd7855791cd52bcac6d7a0b.zip
glibc-7007c661ad737b3c8fd7855791cd52bcac6d7a0b.tar.gz
glibc-7007c661ad737b3c8fd7855791cd52bcac6d7a0b.tar.bz2
Adjust SH specific fpu_control.h and ucontext.h files.
Diffstat (limited to 'sysdeps/sh')
-rw-r--r--sysdeps/sh/fpu_control.h (renamed from sysdeps/sh/sh4/fpu/fpu_control.h)14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/sh/sh4/fpu/fpu_control.h b/sysdeps/sh/fpu_control.h
index ab1e97b..5d2604b 100644
--- a/sysdeps/sh/sh4/fpu/fpu_control.h
+++ b/sysdeps/sh/fpu_control.h
@@ -19,6 +19,17 @@
#ifndef _FPU_CONTROL_H
#define _FPU_CONTROL_H
+#if !defined(__SH_FPU_ANY__)
+
+#define _FPU_RESERVED 0xffffffff
+#define _FPU_DEFAULT 0x00000000
+typedef unsigned int fpu_control_t;
+#define _FPU_GETCW(cw) (cw) = 0
+#define _FPU_SETCW(cw) (void) (cw)
+extern fpu_control_t __fpu_control;
+
+#else
+
#include <features.h>
/* masking of interrupts */
@@ -59,4 +70,7 @@ extern void __set_fpscr (unsigned long);
extern fpu_control_t __fpu_control;
__END_DECLS
+
+#endif /* __SH_FPU_ANY__ */
+
#endif /* _FPU_CONTROL_H */