summaryrefslogtreecommitdiffstats
path: root/common-user/host/x86_64/safe-syscall.inc.S
diff options
context:
space:
mode:
Diffstat (limited to 'common-user/host/x86_64/safe-syscall.inc.S')
-rw-r--r--common-user/host/x86_64/safe-syscall.inc.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/common-user/host/x86_64/safe-syscall.inc.S b/common-user/host/x86_64/safe-syscall.inc.S
index a20927a783..d1a67a303a 100644
--- a/common-user/host/x86_64/safe-syscall.inc.S
+++ b/common-user/host/x86_64/safe-syscall.inc.S
@@ -99,6 +99,7 @@ safe_syscall_end:
1: pop %rbp
.cfi_def_cfa_offset 8
.cfi_restore rbp
+ mov %eax, %edi
jmp safe_syscall_set_errno_tail
.cfi_endproc