Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
visasm.h File Reference
#include <asm/pstate.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Macros

#define VISEntry
 
#define VISExit   wr %g0, 0, %fprs;
 
#define VISEntryHalf
 
#define VISExitHalf   wr %o5, 0, %fprs;
 

Functions

int vis_emul (struct pt_regs *, unsigned int)
 

Macro Definition Documentation

#define VISEntry
Value:
rd %fprs, %o5; \
andcc %o5, (FPRS_FEF|FPRS_DU), %g0; \
be,pt %icc, 297f; \
sethi %hi(297f), %g7; \
sethi %hi(VISenter), %g1; \
jmpl %g1 + %lo(VISenter), %g0; \
or %g7, %lo(297f), %g7; \
297: wr %g0, FPRS_FEF, %fprs; \

Definition at line 14 of file visasm.h.

#define VISEntryHalf
Value:
rd %fprs, %o5; \
andcc %o5, FPRS_FEF, %g0; \
be,pt %icc, 297f; \
sethi %hi(298f), %g7; \
sethi %hi(VISenterhalf), %g1; \
jmpl %g1 + %lo(VISenterhalf), %g0; \
or %g7, %lo(298f), %g7; \
clr %o5; \
297: wr %o5, FPRS_FEF, %fprs; \
298:

Definition at line 30 of file visasm.h.

#define VISExit   wr %g0, 0, %fprs;

Definition at line 24 of file visasm.h.

#define VISExitHalf   wr %o5, 0, %fprs;

Definition at line 42 of file visasm.h.

Function Documentation

int vis_emul ( struct pt_regs ,
unsigned  int 
)

Definition at line 803 of file visemul.c.