Lines Matching refs:user_sregs

70 	_sigregs32 user_sregs;  in save_sigregs32()  local
73 user_sregs.regs.psw.mask = (__u32)(regs->psw.mask >> 32); in save_sigregs32()
74 user_sregs.regs.psw.mask &= PSW32_MASK_USER | PSW32_MASK_RI; in save_sigregs32()
75 user_sregs.regs.psw.mask |= PSW32_USER_BITS; in save_sigregs32()
76 user_sregs.regs.psw.addr = (__u32) regs->psw.addr | in save_sigregs32()
79 user_sregs.regs.gprs[i] = (__u32) regs->gprs[i]; in save_sigregs32()
80 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs32()
81 sizeof(user_sregs.regs.acrs)); in save_sigregs32()
82 fpregs_store((_s390_fp_regs *) &user_sregs.fpregs, &current->thread.ufpu); in save_sigregs32()
83 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32()
90 _sigregs32 user_sregs; in restore_sigregs32() local
96 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32()
99 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW32_MASK_RI)) in restore_sigregs32()
104 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_USER) << 32 | in restore_sigregs32()
105 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_RI) << 32 | in restore_sigregs32()
106 (__u64)(user_sregs.regs.psw.addr & PSW32_ADDR_AMODE); in restore_sigregs32()
111 regs->psw.addr = (__u64)(user_sregs.regs.psw.addr & PSW32_ADDR_INSN); in restore_sigregs32()
113 regs->gprs[i] = (__u64) user_sregs.regs.gprs[i]; in restore_sigregs32()
114 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs32()
116 fpregs_load((_s390_fp_regs *)&user_sregs.fpregs, &current->thread.ufpu); in restore_sigregs32()