summaryrefslogtreecommitdiff
path: root/lib/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-27 16:01:59 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-27 16:10:14 -0700
commitd4fac4da419b09f014c27b0f4334f1c8f4314faf (patch)
tree8272bad50c7ddaa656fb280f2a2f3c3a704b3e11 /lib/sys
parentf0dd01e68f92fc10633bf6cb78de833b790550f2 (diff)
downloadmc-d4fac4da419b09f014c27b0f4334f1c8f4314faf.tar.gz
Cope with new syscall ABI.
Diffstat (limited to 'lib/sys')
-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