Lines Matching refs:user_sregs
124 _sigregs user_sregs; in save_sigregs() local
128 user_sregs.regs.psw.mask = PSW_USER_BITS | in save_sigregs()
130 user_sregs.regs.psw.addr = regs->psw.addr; in save_sigregs()
131 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs()
132 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
133 sizeof(user_sregs.regs.acrs)); in save_sigregs()
134 fpregs_store(&user_sregs.fpregs, ¤t->thread.ufpu); in save_sigregs()
135 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs()
142 _sigregs user_sregs; in restore_sigregs() local
147 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs()
150 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
155 (user_sregs.regs.psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in restore_sigregs()
163 regs->psw.addr = user_sregs.regs.psw.addr; in restore_sigregs()
164 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs()
165 memcpy(¤t->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
168 fpregs_load(&user_sregs.fpregs, ¤t->thread.ufpu); in restore_sigregs()