Commit ee551846 authored by Joel Sing's avatar Joel Sing

runtime: correct netbsd/amd64 assembly for timespec handling

A timespec on netbsd/amd64 is int64/int64, not int64/int32.
This bug appears to have been introduced in 7777bac6.

Spotted by Cherry Zhang while reviewing https://go-review.googlesource.com/c/go/+/177120.

Change-Id: I163c55d926965defd981bdbfd2511de7d9d4c542
Reviewed-on: https://go-review.googlesource.com/c/go/+/177637Reviewed-by: default avatarBenny Siegert <bsiegert@gmail.com>
Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
parent 37133b5d
......@@ -218,7 +218,7 @@ TEXT runtime·walltime(SB), NOSPLIT, $32
MOVL $SYS___clock_gettime50, AX
SYSCALL
MOVQ 8(SP), AX // sec
MOVL 16(SP), DX // nsec
MOVQ 16(SP), DX // nsec
// sec is in AX, nsec in DX
MOVQ AX, sec+0(FP)
......@@ -231,7 +231,7 @@ TEXT runtime·nanotime(SB),NOSPLIT,$32
MOVL $SYS___clock_gettime50, AX
SYSCALL
MOVQ 8(SP), AX // sec
MOVL 16(SP), DX // nsec
MOVQ 16(SP), DX // nsec
// sec is in AX, nsec in DX
// return nsec in AX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment