Lines Matching refs:fpstate
333 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local
350 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state()
352 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state()
354 context_size = fpstate[1]; in rt_restore_fpu_state()
357 (fpstate[0] != fpu_version)) in rt_restore_fpu_state()
372 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
373 fpstate[3] == 0x60 || in rt_restore_fpu_state()
374 fpstate[3] == 0xe0)) in rt_restore_fpu_state()
377 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
378 fpstate[3] == 0x05 || in rt_restore_fpu_state()
379 fpstate[3] == 0xe5)) in rt_restore_fpu_state()
408 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state()
413 __asm__ volatile ("frestore %0" : : "m" (*fpstate)); in rt_restore_fpu_state()
418 : : "m" (*fpstate)); in rt_restore_fpu_state()
484 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_save_fpu_state() local
499 __asm__ volatile ("fsave %0" : : "m" (*fpstate) : "memory"); in rt_save_fpu_state()
504 : : "m" (*fpstate) : "memory"); in rt_save_fpu_state()
507 err |= __put_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate); in rt_save_fpu_state()
508 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_save_fpu_state()
511 context_size = fpstate[1]; in rt_save_fpu_state()
512 fpu_version = fpstate[0]; in rt_save_fpu_state()
517 if (*(unsigned short *) fpstate == 0x1f38) in rt_save_fpu_state()
518 fpstate[0x38] |= 1 << 3; in rt_save_fpu_state()
545 err |= copy_to_user((long __user *)&uc->uc_fpstate + 1, fpstate + 4, in rt_save_fpu_state()