Lines Matching refs:S387
677 #define S387 ((struct i387_soft_struct *)s387) macro
679 ((S387->swd & ~SW_Top & 0xffff) | ((S387->ftop << SW_Top_Shift) & SW_Top))
688 if (__copy_from_user(&S387->cwd, d, 7*4)) in restore_i387_soft()
694 S387->ftop = (S387->swd >> SW_Top_Shift) & 7; in restore_i387_soft()
695 offset = (S387->ftop & 7) * 10; in restore_i387_soft()
700 if (__copy_from_user(((u_char *)&S387->st_space)+offset, d, other)) in restore_i387_soft()
703 if (__copy_from_user((u_char *)&S387->st_space, d+other, offset)) in restore_i387_soft()
708 tags = S387->twd; in restore_i387_soft()
709 newtop = S387->ftop; in restore_i387_soft()
716 tag = FPU_tagof((FPU_REG *)((u_char *)S387->st_space + 10*regnr)); in restore_i387_soft()
721 S387->twd = tags; in restore_i387_soft()
730 int offset = (S387->ftop & 7) * 10, other = 80 - offset; in save_i387_soft()
735 S387->cwd &= ~0xe080; in save_i387_soft()
737 S387->cwd |= 0xffff0040; in save_i387_soft()
738 S387->swd = sstatus_word() | 0xffff0000; in save_i387_soft()
739 S387->twd |= 0xffff0000; in save_i387_soft()
740 S387->fcs &= ~0xf8000000; in save_i387_soft()
741 S387->fos |= 0xffff0000; in save_i387_soft()
743 __copy_to_user(d, &S387->cwd, 7*4); in save_i387_soft()
750 if (__copy_to_user(d, ((u_char *)&S387->st_space)+offset, other)) in save_i387_soft()
753 if (__copy_to_user(d+other, (u_char *)&S387->st_space, offset)) in save_i387_soft()