base/include/asm-arm/rtai_fpu.h

Go to the documentation of this file.
00001 /* 00002 * FPU support. 00003 * 00004 * Original RTAI/x86 layer implementation: 00005 * Copyright (c) 2000 Paolo Mantegazza (mantegazza@aero.polimi.it) 00006 * Copyright (c) 2000 Steve Papacharalambous (stevep@zentropix.com) 00007 * Copyright (c) 2000 Stuart Hughes 00008 * and others. 00009 * 00010 * RTAI/x86 rewrite over Adeos: 00011 * Copyright (c) 2002 Philippe Gerum (rpm@xenomai.org) 00012 * 00013 * Original RTAI/ARM RTHAL implementation: 00014 * Copyright (c) 2000 Pierre Cloutier (pcloutier@poseidoncontrols.com) 00015 * Copyright (c) 2001 Alex Züpke, SYSGO RTS GmbH (azu@sysgo.de) 00016 * Copyright (c) 2002 Guennadi Liakhovetski DSA GmbH (gl@dsa-ac.de) 00017 * Copyright (c) 2002 Steve Papacharalambous (stevep@zentropix.com) 00018 * Copyright (c) 2002 Wolfgang Müller (wolfgang.mueller@dsa-ac.de) 00019 * Copyright (c) 2003 Bernard Haible, Marconi Communications 00020 * Copyright (c) 2003 Thomas Gleixner (tglx@linutronix.de) 00021 * Copyright (c) 2003 Philippe Gerum (rpm@xenomai.org) 00022 * 00023 * RTAI/ARM over Adeos rewrite: 00024 * Copyright (c) 2004-2005 Michael Neuhauser, Firmix Software GmbH (mike@firmix.at) 00025 * 00026 * RTAI/ARM over Adeos rewrite for PXA255_2.6.7: 00027 * Copyright (c) 2005 Stefano Gafforelli (stefano.gafforelli@tiscali.it) 00028 * Copyright (c) 2005 Luca Pizzi (lucapizzi@hotmail.com) 00029 * 00030 * This program is free software; you can redistribute it and/or modify it under 00031 * the terms of the GNU General Public License as published by the Free Software 00032 * Foundation, Inc., 675 Mass Ave, Cambridge MA 02139, USA; either version 2 of 00033 * the License, or (at your option) any later version. 00034 * 00035 * This program is distributed in the hope that it will be useful, but WITHOUT 00036 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00037 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00038 * details. 00039 * 00040 * You should have received a copy of the GNU General Public License along with 00041 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00042 * Place - Suite 330, Boston, MA 02111-1307, USA. 00043 */ 00044 #ifndef _RTAI_ASM_ARM_FPU_H 00045 #define _RTAI_ASM_ARM_FPU_H 00046 00047 #ifdef CONFIG_RTAI_FPU_SUPPORT 00048 #error "Sorry, there is no FPU support in RTAI for ARM (you don't need it for soft-float or FPU-emulation)" 00049 #endif 00050 00051 /* All the work is done by the soft-float library or the kernel FPU emulator. */ 00052 00053 #define init_fpu(tsk) do { /* nop */ } while (0) 00054 #define restore_fpu(tsk) do { /* nop */ } while (0) 00055 #define save_cr0_and_clts(x) do { /* nop */ } while (0) 00056 #define restore_cr0(x) do { /* nop */ } while (0) 00057 #define enable_fpu() do { /* nop */ } while (0) 00058 #define load_mxcsr(val) do { /* nop */ } while (0) 00059 #define init_xfpu() do { /* nop */ } while (0) 00060 #define save_fpenv(x) do { /* nop */ } while (0) 00061 #define restore_fpenv(x) do { /* nop */ } while (0) 00062 #define restore_task_fpenv(t) do { /* nop */ } while (0) 00063 #define restore_fpenv_lxrt(t) do { /* nop */ } while (0) 00064 00065 typedef struct arm_fpu_env { unsigned long fpu_reg[1]; } FPU_ENV; 00066 00067 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) 00068 #define set_tsk_used_fpu(t) \ 00069 do { (t)->flags |= PF_USEDFPU; } while (0) 00070 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */ 00071 #define set_tsk_used_fpu(t) \ 00072 do { (t)->flags |= TIF_USED_FPU; } while (0) 00073 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) */ 00074 00075 #endif /* _RTAI_ASM_ARM_FPU_H */

Generated on Thu Nov 20 11:49:48 2008 for RTAI API by doxygen 1.3.8