aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_dragonfly_amd64.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-27 09:22:43 -0400
committerRuss Cox <rsc@golang.org>2016-10-27 17:53:13 +0000
commit5594074dcd09d0bb8c35998e20cddf728893ff00 (patch)
treeb9ecefbc4d8ed561f7ac35e9661c48ff5a99f5c9 /src/runtime/sys_dragonfly_amd64.s
parentaff37662d1f70f2bf9e47b4f962e85521e7c18d1 (diff)
downloadgo-5594074dcd09d0bb8c35998e20cddf728893ff00.tar.gz
go-5594074dcd09d0bb8c35998e20cddf728893ff00.zip
runtime: use clock_gettime(CLOCK_REALTIME) for nanosecond-precision time.now on arm64, mips64x
Assembly copied from the clock_gettime(CLOCK_MONOTONIC) call in runtime.nanotime in these files and then modified to use CLOCK_REALTIME. Also comment system call numbers in a few other files. Fixes #11222. Change-Id: Ie132086de7386f865908183aac2713f90fc73e0d Reviewed-on: https://go-review.googlesource.com/32177 Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/sys_dragonfly_amd64.s')
-rw-r--r--src/runtime/sys_dragonfly_amd64.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_dragonfly_amd64.s b/src/runtime/sys_dragonfly_amd64.s
index 77fb525aa3..fd960e608a 100644
--- a/src/runtime/sys_dragonfly_amd64.s
+++ b/src/runtime/sys_dragonfly_amd64.s
@@ -150,7 +150,7 @@ TEXT runtime·setitimer(SB), NOSPLIT, $-8
// func now() (sec int64, nsec int32)
TEXT time·now(SB), NOSPLIT, $32
- MOVL $232, AX
+ MOVL $232, AX // clock_gettime
MOVQ $0, DI // CLOCK_REALTIME
LEAQ 8(SP), SI
SYSCALL