fp.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
- /* $Id: fp.h,v 1.1 1998/07/16 19:10:04 ralf Exp $
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1998 by Ralf Baechle
- */
- /*
- * Activate and deactive the floatingpoint accelerator.
- */
- #define enable_cp1()
- __asm__ __volatile__(
- ".settpushnt"
- ".settnoatnt"
- ".settreordernt"
- "mfc0t$1,$12nt"
- "ort$1,%0nt"
- "mtc0t$1,$12nt"
- ".settpop"
- : : "r" (ST0_CU1));
- #define disable_cp1()
- __asm__ __volatile__(
- ".settpushnt"
- ".settnoatnt"
- ".settreordernt"
- "mfc0t$1,$12nt"
- "ort$1,%0nt"
- "xort$1,%0nt"
- "mtc0t$1,$12nt"
- ".settpop"
- : : "r" (ST0_CU1));