diff options
author | Russ Cox <rsc@golang.org> | 2016-10-27 09:22:43 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2016-10-27 17:53:13 +0000 |
commit | 5594074dcd09d0bb8c35998e20cddf728893ff00 (patch) | |
tree | b9ecefbc4d8ed561f7ac35e9661c48ff5a99f5c9 /src/runtime/sys_freebsd_386.s | |
parent | aff37662d1f70f2bf9e47b4f962e85521e7c18d1 (diff) | |
download | go-git-5594074dcd09d0bb8c35998e20cddf728893ff00.tar.gz |
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_freebsd_386.s')
-rw-r--r-- | src/runtime/sys_freebsd_386.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_freebsd_386.s b/src/runtime/sys_freebsd_386.s index b37abcef95..7f3cd56cad 100644 --- a/src/runtime/sys_freebsd_386.s +++ b/src/runtime/sys_freebsd_386.s @@ -161,7 +161,7 @@ TEXT runtime·setitimer(SB), NOSPLIT, $-4 // func now() (sec int64, nsec int32) TEXT time·now(SB), NOSPLIT, $32 - MOVL $232, AX + MOVL $232, AX // clock_gettime LEAL 12(SP), BX MOVL $0, 4(SP) // CLOCK_REALTIME MOVL BX, 8(SP) |