Lines Matching refs:regs
188 unsigned long regs[3]; in parent() local
195 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
199 info->amr1 = info->amr2 = info->amr3 = regs[0]; in parent()
200 info->expected_iamr = info->new_iamr = regs[1]; in parent()
201 info->expected_uamor = info->new_uamor = regs[2]; in parent()
212 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
216 ptrace_read_running, regs[0], regs[1], regs[2]); in parent()
218 PARENT_FAIL_IF(regs[0] != info->amr1, &info->child_sync); in parent()
219 PARENT_FAIL_IF(regs[1] != info->expected_iamr, &info->child_sync); in parent()
220 PARENT_FAIL_IF(regs[2] != info->expected_uamor, &info->child_sync); in parent()
251 regs[0] = info->amr1; in parent()
252 regs[1] = info->new_iamr; in parent()
253 ret = ptrace_write_regs(pid, NT_PPC_PKEY, regs, 2); in parent()
257 ptrace_write_running, regs[0], regs[1]); in parent()
260 regs[2] = info->new_uamor; in parent()
261 ret = ptrace_write_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
265 ptrace_write_running, regs[0], regs[1], regs[2]); in parent()
268 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
272 ptrace_read_running, regs[0], regs[1], regs[2]); in parent()
274 PARENT_FAIL_IF(regs[0] != info->amr2, &info->child_sync); in parent()
275 PARENT_FAIL_IF(regs[1] != info->expected_iamr, &info->child_sync); in parent()
276 PARENT_FAIL_IF(regs[2] != info->expected_uamor, &info->child_sync); in parent()