~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-mips/fp.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: fp.h,v 1.1 1998/07/16 19:10:04 ralf Exp $
  2  *
  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.
  6  *
  7  * Copyright (C) 1998 by Ralf Baechle
  8  */
  9 
 10 /*
 11  * Activate and deactive the floatingpoint accelerator.
 12  */
 13 #define enable_cp1()                                                    \
 14         __asm__ __volatile__(                                           \
 15                 ".set\tpush\n\t"                                        \
 16                 ".set\tnoat\n\t"                                        \
 17                 ".set\treorder\n\t"                                     \
 18                 "mfc0\t$1,$12\n\t"                                      \
 19                 "or\t$1,%0\n\t"                                         \
 20                 "mtc0\t$1,$12\n\t"                                      \
 21                 ".set\tpop"                                             \
 22                 : : "r" (ST0_CU1));
 23 
 24 #define disable_cp1()                                                   \
 25         __asm__ __volatile__(                                           \
 26                 ".set\tpush\n\t"                                        \
 27                 ".set\tnoat\n\t"                                        \
 28                 ".set\treorder\n\t"                                     \
 29                 "mfc0\t$1,$12\n\t"                                      \
 30                 "or\t$1,%0\n\t"                                         \
 31                 "xor\t$1,%0\n\t"                                        \
 32                 "mtc0\t$1,$12\n\t"                                      \
 33                 ".set\tpop"                                             \
 34                 : : "r" (ST0_CU1));
 35 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.