Searched refs:fxsave (Results 1 – 10 of 10) sorted by relevance
/linux-2.4.37.9/arch/x86_64/ia32/ |
D | fpu32.c | 28 static inline unsigned long twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave) in twd_fxsr_to_i387() argument 31 unsigned long tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 32 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 41 st = FPREG_ADDR( fxsave, (i - tos) & 7 ); in twd_fxsr_to_i387() 75 static inline int convert_fxsr_from_user(struct i387_fxsave_struct *fxsave, in convert_fxsr_from_user() argument 85 G(0, fxsave->cwd); in convert_fxsr_from_user() 86 G(1, fxsave->swd); in convert_fxsr_from_user() 87 G(2, fxsave->twd); in convert_fxsr_from_user() 88 fxsave->twd = twd_i387_to_fxsr(fxsave->twd); in convert_fxsr_from_user() 89 G(3, fxsave->rip); in convert_fxsr_from_user() [all …]
|
D | ptrace32.c | 327 if (__copy_to_user(u, &child->thread.i387.fxsave, sizeof(*u))) in sys32_ptrace() 340 __copy_from_user(&child->thread.i387.fxsave, u, sizeof(*u)); in sys32_ptrace() 342 child->thread.i387.fxsave.mxcsr &= 0xffbf; in sys32_ptrace()
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | i387.c | 41 empty_fpu_state.fxsave.cwd = 0x37f; in boot_init_fpu() 43 empty_fpu_state.fxsave.mxcsr = 0x1f80; in boot_init_fpu() 61 asm volatile("fxrstor %0" : : "m" (empty_fpu_state.fxsave)); in init_fpu() 75 : "=m" (tsk->thread.i387.fxsave) ); in __save_init_fpu() 76 if (tsk->thread.i387.fxsave.swd & (1<<7)) in __save_init_fpu() 108 : : "m" (tsk->thread.i387.fxsave) ); in restore_fpu() 133 static inline unsigned long twd_fxsr_to_i387( struct i387_fxsave_struct *fxsave ) in twd_fxsr_to_i387() argument 136 unsigned long tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 137 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 146 st = FPREG_ADDR( fxsave, (i - tos) & 7 ); in twd_fxsr_to_i387() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | i387.h | 65 #define get_fpu_mxcsr(t) ((t)->thread.i387.fxsave.mxcsr) 66 #define get_fpu_cwd(t) ((t)->thread.i387.fxsave.cwd) 67 #define get_fpu_fxsr_twd(t) ((t)->thread.i387.fxsave.twd) 68 #define get_fpu_swd(t) ((t)->thread.i387.fxsave.swd) 69 #define set_fpu_cwd(t,val) ((t)->thread.i387.fxsave.cwd = (val)) 70 #define set_fpu_swd(t,val) ((t)->thread.i387.fxsave.swd = (val)) 71 #define set_fpu_fxsr_twd(t,val) ((t)->thread.i387.fxsave.twd = (val)) 72 #define set_fpu_mxcsr(t,val) ((t)->thread.i387.fxsave.mxcsr = (val)&0xffbf) 119 : "=m" (tsk->thread.i387.fxsave)); in kernel_fpu_begin() 129 : "=m" (tsk->thread.i387.fxsave)); in save_init_fpu() [all …]
|
D | bugs.h | 22 if (offsetof(struct task_struct, thread.i387.fxsave) & 15) in check_fpu()
|
D | processor.h | 281 struct i387_fxsave_struct fxsave; member
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | i387.c | 34 memset(&child->thread.i387.fxsave, 0, sizeof(struct i387_fxsave_struct)); in init_fpu() 35 child->thread.i387.fxsave.cwd = 0x37f; in init_fpu() 36 child->thread.i387.fxsave.mxcsr = 0x1f80; in init_fpu() 51 if (sizeof(struct user_i387_struct) != sizeof(tsk->thread.i387.fxsave)) in save_i387() 68 if (__copy_to_user(buf, &tsk->thread.i387.fxsave, in save_i387() 82 return __copy_to_user((void *)buf, &tsk->thread.i387.fxsave, in get_fpregs() 88 if (__copy_from_user(&tsk->thread.i387.fxsave, buf, in set_fpregs() 92 tsk->thread.i387.fxsave.mxcsr &= 0xffbf; in set_fpregs() 108 memcpy(fpu, &tsk->thread.i387.fxsave, sizeof(struct user_i387_struct)); in dump_fpu()
|
D | traps.c | 825 restore_fpu_checking(&me->thread.i387.fxsave); in math_state_restore()
|
/linux-2.4.37.9/include/asm-i386/ |
D | bugs.h | 82 if (offsetof(struct task_struct, thread.i387.fxsave) & 15) { in check_fpu()
|
D | processor.h | 321 struct i387_fxsave_struct fxsave; member
|