summaryrefslogtreecommitdiff
path: root/lib/sys/syscall+osx-x64.s
diff options
context:
space:
mode:
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