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 7777bac6e4.

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/+/177637
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
This commit is contained in:
Joel Sing 2019-05-17 01:25:55 +10:00
parent 37133b5d63
commit ee551846fa
1 changed files with 2 additions and 2 deletions

View File

@ -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