summaryrefslogtreecommitdiffstats
path: root/arch/x86/um/ptrace_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/um/ptrace_64.c')
-rw-r--r--arch/x86/um/ptrace_64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/um/ptrace_64.c b/arch/x86/um/ptrace_64.c
index faab418876ce..0b5c184dd5b3 100644
--- a/arch/x86/um/ptrace_64.c
+++ b/arch/x86/um/ptrace_64.c
@@ -78,7 +78,11 @@ int putreg(struct task_struct *child, int regno, unsigned long value)
case RSI:
case RDI:
case RBP:
+ break;
+
case ORIG_RAX:
+ /* Update the syscall number. */
+ UPT_SYSCALL_NR(&child->thread.regs.regs) = value;
break;
case FS: