From 7fb2478092d40e5237115f409968a9762734692b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Aug 2006 19:13:46 +0000 Subject: fixes from psm: disable unsupported __fpu_control and sync with upstream --- libc/sysdeps/linux/sh/fpu_control.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/sh') 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 */ -- cgit v1.2.3