summaryrefslogtreecommitdiff
path: root/lib/sys/syscall+osx-x64.s
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-10-29 19:08:13 -0700
committerOri Bernstein <ori@eigenstate.org>2017-10-29 19:08:13 -0700
commit269e4f69372bc1250dcb70a9dfde30486809f1b0 (patch)
treeeb86ec1c691bf8f479be36ede67e029f55f3c09c /lib/sys/syscall+osx-x64.s
parent4eea6de57c9fce0a69f85270303baae069c3e237 (diff)
parentd359a98ab9cfc42de66ad35333bd6d6c0571b7ca (diff)
downloadmc-269e4f69372bc1250dcb70a9dfde30486809f1b0.tar.gz
Merge branch 'master' into qbeqbe
Diffstat (limited to 'lib/sys/syscall+osx-x64.s')
-rw-r--r--lib/sys/syscall+osx-x64.s7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sys/syscall+osx-x64.s b/lib/sys/syscall+osx-x64.s
index 5984c24..2618413 100644
--- a/lib/sys/syscall+osx-x64.s
+++ b/lib/sys/syscall+osx-x64.s
@@ -87,10 +87,15 @@ _sys$__osx_gettimeofday:
jae .gettimeofdaysuccess
negq %rax
+ ret
.gettimeofdaysuccess:
- movq %rax, (%rdi)
+ cmpq $0,%rax
+ je .noreg
+
+ movq %rax,0(%rdi)
movl %edx,8(%rdi)
xorq %rax,%rax
+.noreg:
ret