summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/fpu_control.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-23 19:13:46 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-23 19:13:46 +0000
commit7fb2478092d40e5237115f409968a9762734692b (patch)
tree694e78077f2215dc2269caca7c7285063d21cfaa /libc/sysdeps/linux/sh/fpu_control.h
parent160cae6ad49006f75f393e48ce5516779d7eb8bf (diff)
fixes from psm: disable unsupported __fpu_control and sync with upstream
Diffstat (limited to 'libc/sysdeps/linux/sh/fpu_control.h')
-rw-r--r--libc/sysdeps/linux/sh/fpu_control.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh/fpu_control.h b/libc/sysdeps/linux/sh/fpu_control.h
index 43eb9e549..db3cc4557 100644
--- a/libc/sysdeps/linux/sh/fpu_control.h
+++ b/libc/sysdeps/linux/sh/fpu_control.h
@@ -20,6 +20,8 @@
#ifndef _FPU_CONTROL_H
#define _FPU_CONTROL_H
+#warning This file is only correct for sh4
+
/* masking of interrupts */
#define _FPU_MASK_VM 0x0800 /* Invalid operation */
#define _FPU_MASK_ZM 0x0400 /* Division by zero */
@@ -50,7 +52,9 @@ typedef unsigned int fpu_control_t;
#define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))
#endif
+#if 0
/* Default control word set at startup. */
extern fpu_control_t __fpu_control;
+#endif
#endif /* _FPU_CONTROL_H */