Go to the documentation of this file. 1 #ifndef _SPARC64_VISASM_H
2 #define _SPARC64_VISASM_H
10 #include <asm/ptrace.h>
16 andcc %o5, (FPRS_FEF|FPRS_DU), %g0; \
18 sethi %hi(297f), %g7; \
19 sethi %hi(VISenter), %g1; \
20 jmpl %g1 + %lo(VISenter), %g0; \
21 or %g7, %lo(297f), %g7; \
22 297: wr %g0, FPRS_FEF, %fprs; \
30 #define VISEntryHalf \
32 andcc %o5, FPRS_FEF, %g0; \
34 sethi %hi(298f), %g7; \
35 sethi %hi(VISenterhalf), %g1; \
36 jmpl %g1 + %lo(VISenterhalf), %g0; \
37 or %g7, %lo(298f), %g7; \
39 297: wr %o5, FPRS_FEF, %fprs; \
46 static inline void save_and_clear_fpu(
void) {
49 " andcc %%o5, %0, %%g0\n"
50 " be,pt %%icc, 299f\n"
51 " sethi %%hi(298f), %%g7\n"
52 " sethi %%hi(VISenter), %%g1\n"
53 " jmpl %%g1 + %%lo(VISenter), %%g0\n"
54 " or %%g7, %%lo(298f), %%g7\n"
55 " 298: wr %%g0, 0, %%fprs\n"
58 "o5",
"g1",
"g2",
"g3",
"g7",
"cc");