• Home
  • Raw
  • Download

Lines Matching refs:fxsave

53 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave)  in twd_fxsr_to_i387()  argument
56 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
65 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387()
99 struct user_fxsr_struct *fxsave) in convert_fxsr_to_user() argument
106 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
107 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user()
108 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
109 env[3] = fxsave->fip; in convert_fxsr_to_user()
110 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
111 env[5] = fxsave->foo; in convert_fxsr_to_user()
112 env[6] = fxsave->fos; in convert_fxsr_to_user()
118 from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_fxsr_to_user()
131 static int convert_fxsr_from_user(struct user_fxsr_struct *fxsave, in convert_fxsr_from_user() argument
142 fxsave->cwd = (unsigned short)(env[0] & 0xffff); in convert_fxsr_from_user()
143 fxsave->swd = (unsigned short)(env[1] & 0xffff); in convert_fxsr_from_user()
144 fxsave->twd = twd_i387_to_fxsr((unsigned short)(env[2] & 0xffff)); in convert_fxsr_from_user()
145 fxsave->fip = env[3]; in convert_fxsr_from_user()
146 fxsave->fop = (unsigned short)((env[4] & 0xffff0000ul) >> 16); in convert_fxsr_from_user()
147 fxsave->fcs = (env[4] & 0xffff); in convert_fxsr_from_user()
148 fxsave->foo = env[5]; in convert_fxsr_from_user()
149 fxsave->fos = env[6]; in convert_fxsr_from_user()
151 to = (struct _fpxreg *) &fxsave->st_space[0]; in convert_fxsr_from_user()