Lines Matching refs:fxsave
37 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave)
40 unsigned long twd = (unsigned long) fxsave->twd;
49 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i);
83 struct user_fxsr_struct *fxsave)
90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul;
91 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul;
92 env[2] = twd_fxsr_to_i387(fxsave);
93 env[3] = fxsave->fip;
94 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16);
95 env[5] = fxsave->foo;
96 env[6] = fxsave->fos;
102 from = (struct _fpxreg *) &fxsave->st_space[0];
115 static int convert_fxsr_from_user(struct user_fxsr_struct *fxsave,
126 fxsave->cwd = (unsigned short)(env[0] & 0xffff);
127 fxsave->swd = (unsigned short)(env[1] & 0xffff);
128 fxsave->twd = twd_i387_to_fxsr((unsigned short)(env[2] & 0xffff));
129 fxsave->fip = env[3];
130 fxsave->fop = (unsigned short)((env[4] & 0xffff0000ul) >> 16);
131 fxsave->fcs = (env[4] & 0xffff);
132 fxsave->foo = env[5];
133 fxsave->fos = env[6];
135 to = (struct _fpxreg *) &fxsave->st_space[0];