ref: d4fac4da419b09f014c27b0f4334f1c8f4314faf
parent: f0dd01e68f92fc10633bf6cb78de833b790550f2
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 27 12:01:59 EDT 2017
Cope with new syscall ABI.
--- a/lib/sys/syscall+osx-x64.s
+++ b/lib/sys/syscall+osx-x64.s
@@ -87,10 +87,15 @@
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