1
0
mirror of https://github.com/golang/go synced 2024-11-19 12:14:42 -07:00

runtime: use monotonic time on NetBSD

Fixes #6007

Change-Id: I239a1699122e086e907ac1f18b1c86a650e1438a
Reviewed-on: https://go-review.googlesource.com/81135
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Brad Fitzpatrick 2017-11-30 19:37:16 +00:00
parent bd983a6d2e
commit 2065685664
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ TEXT runtime·walltime(SB), NOSPLIT, $32
// void nanotime(int64 *nsec)
TEXT runtime·nanotime(SB),NOSPLIT,$32
LEAL 12(SP), BX
MOVL $0, 4(SP) // arg 1 - clock_id
MOVL $3, 4(SP) // arg 1 - clock_id CLOCK_MONOTONIC
MOVL BX, 8(SP) // arg 2 - tp
MOVL $427, AX // sys_clock_gettime
INT $0x80

View File

@ -188,7 +188,7 @@ TEXT runtime·walltime(SB), NOSPLIT, $32
RET
TEXT runtime·nanotime(SB),NOSPLIT,$32
MOVQ $0, DI // arg 1 - clock_id
MOVQ $3, DI // arg 1 - clock_id CLOCK_MONOTONIC
LEAQ 8(SP), SI // arg 2 - tp
MOVL $427, AX // sys_clock_gettime
SYSCALL