diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-06-17 13:25:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-06-17 13:25:08 +0000 |
commit | 59223edaa18759982db0a8aced0e77457d10c68e (patch) | |
tree | 89354903b01fa0a447bffeefe00df3044495db2e /include/asm-sparc64/fpumacro.h | |
parent | db7d4daea91e105e3859cf461d7e53b9b77454b2 (diff) |
Merge with Linux 2.3.6. Sorry, this isn't tested on silicon, I don't
have a MIPS box at hand.
Diffstat (limited to 'include/asm-sparc64/fpumacro.h')
-rw-r--r-- | include/asm-sparc64/fpumacro.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/asm-sparc64/fpumacro.h b/include/asm-sparc64/fpumacro.h index 9fd631670..3fd5cab0c 100644 --- a/include/asm-sparc64/fpumacro.h +++ b/include/asm-sparc64/fpumacro.h @@ -30,44 +30,4 @@ extern __inline__ void fprs_write(unsigned long val) __asm__ __volatile__("wr %0, 0x0, %%fprs" : : "r" (val)); } -extern __inline__ void fpsave(unsigned long *fpregs, - unsigned long *fsr, - unsigned long *gsr) -{ - __asm__ __volatile__ (" - wr %%g0, %3, %%asi - rd %%gsr, %%g1 - membar #LoadStore | #StoreStore - stx %%fsr, [%1] - stx %%g1, [%2] - stda %%f0, [%0] %%asi - stda %%f16, [%0 + 64] %%asi - stda %%f32, [%0 + 128] %%asi - stda %%f48, [%0 + 192] %%asi - membar #Sync -" : /* No outputs */ - : "r" (fpregs), "r" (fsr), "r" (gsr), "i" (ASI_BLK_P) - : "g1"); -} - -extern __inline__ void fpload(unsigned long *fpregs, - unsigned long *fsr, - unsigned long *gsr) -{ - __asm__ __volatile__ (" - wr %%g0, %3, %%asi - membar #StoreLoad | #LoadLoad - ldda [%0] %%asi, %%f0 - ldda [%0 + 64] %%asi, %%f16 - ldda [%0 + 128] %%asi, %%f32 - ldda [%0 + 192] %%asi, %%f48 - ldx [%1], %%fsr - ldx [%2], %%g1 - wr %%g1, 0, %%gsr - membar #Sync -" : /* No outputs */ - : "r" (fpregs), "r" (fsr), "r" (gsr), "i" (ASI_BLK_P) - : "g1"); -} - #endif /* !(_SPARC64_FPUMACRO_H) */ |