Import 2.3.18pre1
[davej-history.git] / include / asm-mips / fp.h
blob463478147efb9a36c3c6572bea62c331b5fc374b
1 /* $Id: fp.h,v 1.1 1998/07/16 17:01:54 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) 1998 by Ralf Baechle
8 */
11 * Activate and deactive the floatingpoint accelerator.
13 #define enable_cp1() \
14 __asm__ __volatile__( \
15 ".set\tnoat\n\t" \
16 "mfc0\t$1,$12\n\t" \
17 "or\t$1,%0\n\t" \
18 "mtc0\t$1,$12\n\t" \
19 ".set\tat" \
20 : : "r" (ST0_CU1));
22 #define disable_cp1() \
23 __asm__ __volatile__( \
24 ".set\tnoat\n\t" \
25 "mfc0\t$1,$12\n\t" \
26 "or\t$1,%0\n\t" \
27 "xor\t$1,%0\n\t" \
28 "mtc0\t$1,$12\n\t" \
29 ".set\tat" \
30 : : "r" (ST0_CU1));