Lines Matching refs:user_sregs
123 _sigregs user_sregs; in save_sigregs() local
127 user_sregs.regs.psw.mask = PSW_USER_BITS | in save_sigregs()
129 user_sregs.regs.psw.addr = regs->psw.addr; in save_sigregs()
130 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs()
131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
132 sizeof(user_sregs.regs.acrs)); in save_sigregs()
133 fpregs_store(&user_sregs.fpregs, ¤t->thread.fpu); in save_sigregs()
134 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs()
141 _sigregs user_sregs; in restore_sigregs() local
146 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs()
149 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
153 if (test_fp_ctl(user_sregs.fpregs.fpc)) in restore_sigregs()
158 (user_sregs.regs.psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in restore_sigregs()
166 regs->psw.addr = user_sregs.regs.psw.addr; in restore_sigregs()
167 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs()
168 memcpy(¤t->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
171 fpregs_load(&user_sregs.fpregs, ¤t->thread.fpu); in restore_sigregs()