Lines Matching refs:gpr2
772 static long gpr2;
804 * (new style) in gpr2. We cannot recover the scno again
825 * Since kernel version 2.5.44 the scno gets passed in gpr2.
1390 if (upeek(pid, PT_GPR2, &gpr2) < 0)
1394 if (gpr2 != syscall_mode && !(tcp->flags & TCB_INSYSCALL)) {
1396 fprintf(stderr, "stray syscall exit: gpr2 = %ld\n", gpr2);
1401 && (gpr2 == -ENOSYS || gpr2 == tcp->scno)) {
1406 gpr2 = 0;
1453 if (gpr2 && (unsigned) -gpr2 < nerrnos) {
1455 u_error = -gpr2;
1458 tcp->u_rval = gpr2;
1703 gpr2 = error ? -error : rval;
1704 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)PT_GPR2, gpr2) < 0)