diff options
Diffstat (limited to 'src/pkg/runtime/sys_freebsd_amd64.s')
-rw-r--r-- | src/pkg/runtime/sys_freebsd_amd64.s | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/runtime/sys_freebsd_amd64.s b/src/pkg/runtime/sys_freebsd_amd64.s index 63cd3ac07..4c5b32504 100644 --- a/src/pkg/runtime/sys_freebsd_amd64.s +++ b/src/pkg/runtime/sys_freebsd_amd64.s @@ -144,7 +144,7 @@ TEXT runtime·setitimer(SB), NOSPLIT, $-8 // func now() (sec int64, nsec int32) TEXT time·now(SB), NOSPLIT, $32 MOVL $232, AX - MOVQ $0, DI + MOVQ $0, DI // CLOCK_REALTIME LEAQ 8(SP), SI SYSCALL MOVQ 8(SP), AX // sec @@ -157,7 +157,9 @@ TEXT time·now(SB), NOSPLIT, $32 TEXT runtime·nanotime(SB), NOSPLIT, $32 MOVL $232, AX - MOVQ $0, DI + // We can use CLOCK_MONOTONIC_FAST here when we drop + // support for FreeBSD 8-STABLE. + MOVQ $4, DI // CLOCK_MONOTONIC LEAQ 8(SP), SI SYSCALL MOVQ 8(SP), AX // sec |