aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-07-07 16:41:29 -0700
committerIan Lance Taylor <iant@golang.org>2016-07-08 03:17:18 +0000
commitfad2bbdc6a686a20174d2e73cf78f1659722bb39 (patch)
treeeed2eda9865f784bd6804e51e4e44458da68bc0d /src/syscall
parent84bb9e62f06dbb62279241fa0bd7a6c8846271ac (diff)
downloadgo-fad2bbdc6a686a20174d2e73cf78f1659722bb39.tar.xz
runtime: fix nanotime for macOS Sierra
In the beta version of the macOS Sierra (10.12) release, the gettimeofday system call changed on x86. Previously it always returned the time in the AX/DX registers. Now, if AX is returned as 0, it means that the system call has stored the values into the memory pointed to by the first argument, just as the libc gettimeofday function does. The libc function handles both cases, and we need to do so as well. Fixes #16272. Change-Id: Ibe5ad50a2c5b125e92b5a4e787db4b5179f6b723 Reviewed-on: https://go-review.googlesource.com/24812 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions