[MTD] [NAND] Inherit CAFÉ NAND timing setup from firmware
[linux-2.6/kmemtrace.git] / include / asm-sparc64 / fpumacro.h
blobd583e5efd75d4c73d81fe3f2034b24839a47b905
1 /* fpumacro.h: FPU related macros.
3 * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
4 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
5 */
7 #ifndef _SPARC64_FPUMACRO_H
8 #define _SPARC64_FPUMACRO_H
10 #include <asm/asi.h>
11 #include <asm/visasm.h>
13 struct fpustate {
14 u32 regs[64];
17 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
19 static __inline__ unsigned long fprs_read(void)
21 unsigned long retval;
23 __asm__ __volatile__("rd %%fprs, %0" : "=r" (retval));
25 return retval;
28 static __inline__ void fprs_write(unsigned long val)
30 __asm__ __volatile__("wr %0, 0x0, %%fprs" : : "r" (val));
33 #endif /* !(_SPARC64_FPUMACRO_H) */