Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fpu-internal.h File Reference
#include <linux/kernel_stat.h>
#include <linux/regset.h>
#include <linux/compat.h>
#include <linux/slab.h>
#include <asm/asm.h>
#include <asm/cpufeature.h>
#include <asm/processor.h>
#include <asm/sigcontext.h>
#include <asm/user.h>
#include <asm/uaccess.h>
#include <asm/xsave.h>
#include <asm/smap.h>

Go to the source code of this file.

Data Structures

struct  fpu_switch_t


#define user_i387_ia32_struct   user_i387_struct
#define user32_fxsr_struct   user_fxsr_struct
#define ia32_setup_frame   __setup_frame
#define ia32_setup_rt_frame   __setup_rt_frame
#define xstateregs_active   fpregs_active
#define HAVE_HWFP   1
#define X87_FSW_ES   (1 << 7) /* Exception Summary */
#define user_insn(insn, output, input...)
#define check_insn(insn, output, input...)


void fpu_init (void)
void eager_fpu_init (void)
 DECLARE_PER_CPU (struct task_struct *, fpu_owner_task)
void convert_from_fxsr (struct user_i387_ia32_struct *env, struct task_struct *tsk)
void convert_to_fxsr (struct task_struct *tsk, const struct user_i387_ia32_struct *env)
void __sanitize_i387_state (struct task_struct *)
int save_xstate_sig (void __user *buf, void __user *fx, int size)
int __restore_xstate_sig (void __user *buf, void __user *fx, int size)


unsigned int mxcsr_feature_mask
user_regset_active_fn fpregs_active
user_regset_active_fn xfpregs_active
user_regset_get_fn fpregs_get
user_regset_get_fn xfpregs_get
user_regset_get_fn fpregs_soft_get
user_regset_get_fn xstateregs_get
user_regset_set_fn fpregs_set
user_regset_set_fn xfpregs_set
user_regset_set_fn fpregs_soft_set
user_regset_set_fn xstateregs_set

Macro Definition Documentation

#define check_insn (   insn,
({ \
int err; \
asm volatile("1:" #insn "\n\t" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"3: movl $-1,%[err]\n" \
" jmp 2b\n" \
".previous\n" \
_ASM_EXTABLE(1b, 3b) \
: [err] "=r" (err), output \
: "0"(0), input); \
err; \

Definition at line 141 of file fpu-internal.h.

#define HAVE_HWFP   1

Definition at line 67 of file fpu-internal.h.

#define ia32_setup_frame   __setup_frame

Definition at line 36 of file fpu-internal.h.

#define ia32_setup_rt_frame   __setup_rt_frame

Definition at line 37 of file fpu-internal.h.

Definition at line 35 of file fpu-internal.h.

Definition at line 34 of file fpu-internal.h.

#define user_insn (   insn,
({ \
int err; \
asm volatile(ASM_STAC "\n" \
"1:" #insn "\n\t" \
"2: " ASM_CLAC "\n" \
".section .fixup,\"ax\"\n" \
"3: movl $-1,%[err]\n" \
" jmp 2b\n" \
".previous\n" \
_ASM_EXTABLE(1b, 3b) \
: [err] "=r" (err), output \
: "0"(0), input); \
err; \

Definition at line 125 of file fpu-internal.h.

#define X87_FSW_ES   (1 << 7) /* Exception Summary */

Definition at line 87 of file fpu-internal.h.

#define xstateregs_active   fpregs_active

Definition at line 61 of file fpu-internal.h.

Function Documentation

int __restore_xstate_sig ( void __user buf,
void __user fx,
int  size 

Definition at line 331 of file xsave.c.

void __sanitize_i387_state ( struct task_struct )

Definition at line 39 of file xsave.c.

void convert_from_fxsr ( struct user_i387_ia32_struct env,
struct task_struct tsk 
void convert_to_fxsr ( struct task_struct tsk,
const struct user_i387_ia32_struct env 
DECLARE_PER_CPU ( struct task_struct ,
void eager_fpu_init ( void  )

Definition at line 598 of file xsave.c.

void fpu_init ( void  )

Definition at line 160 of file i387.c.

int save_xstate_sig ( void __user buf,
void __user fx,
int  size 

Definition at line 234 of file xsave.c.

Variable Documentation

user_regset_active_fn fpregs_active
user_regset_get_fn fpregs_get
user_regset_set_fn fpregs_set
user_regset_get_fn fpregs_soft_get
user_regset_set_fn fpregs_soft_set
unsigned int mxcsr_feature_mask
user_regset_active_fn xfpregs_active
user_regset_get_fn xfpregs_get
user_regset_set_fn xfpregs_set
user_regset_get_fn xstateregs_get
user_regset_set_fn xstateregs_set