diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-28 17:32:00 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 17:32:00 -0400 |
| commit | 9e3ee1c39c0cc71222f9980ccbf87fe072897eef (patch) | |
| tree | 99462000e6f0d4f907cb2fc690f19d4d441ba0f3 /include/asm-sparc/fpumacro.h | |
| parent | e56b3bc7942982ac2589c942fb345e38bc7a341a (diff) | |
| parent | f934fb19ef34730263e6afc01e8ec27a8a71470f (diff) | |
Merge branch 'linus' into cpus4096
Conflicts:
kernel/stop_machine.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-sparc/fpumacro.h')
| -rw-r--r-- | include/asm-sparc/fpumacro.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/asm-sparc/fpumacro.h b/include/asm-sparc/fpumacro.h deleted file mode 100644 index cc463fec806f..000000000000 --- a/include/asm-sparc/fpumacro.h +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | /* fpumacro.h: FPU related macros. | ||
| 2 | * | ||
| 3 | * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) | ||
| 4 | * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef _SPARC64_FPUMACRO_H | ||
| 8 | #define _SPARC64_FPUMACRO_H | ||
| 9 | |||
| 10 | #include <asm/asi.h> | ||
| 11 | #include <asm/visasm.h> | ||
| 12 | |||
| 13 | struct fpustate { | ||
| 14 | u32 regs[64]; | ||
| 15 | }; | ||
| 16 | |||
| 17 | #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs) | ||
| 18 | |||
| 19 | static inline unsigned long fprs_read(void) | ||
| 20 | { | ||
| 21 | unsigned long retval; | ||
| 22 | |||
| 23 | __asm__ __volatile__("rd %%fprs, %0" : "=r" (retval)); | ||
| 24 | |||
| 25 | return retval; | ||
| 26 | } | ||
| 27 | |||
| 28 | static inline void fprs_write(unsigned long val) | ||
| 29 | { | ||
| 30 | __asm__ __volatile__("wr %0, 0x0, %%fprs" : : "r" (val)); | ||
| 31 | } | ||
| 32 | |||
| 33 | #endif /* !(_SPARC64_FPUMACRO_H) */ | ||
