Skip to content

Commit 71239b4

Browse files
ceseobradfitz
authored andcommitted
runtime: fix wrong offset when calling ppc64x nanotime syscall
There is a wrong offset when getting the results of a clock_gettime syscall. Although the syscall will never be called in native ppc64x, QEMU doesn't implement VDSO, so it will return wrong values. Fixes #36592 Change-Id: Icf838075228dcdd62cf2c1279aa983e5993d66ee Reviewed-on: https://go-review.googlesource.com/c/go/+/215397 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
1 parent df2999e commit 71239b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/sys_linux_ppc64x.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fallback:
280280
ADD $32, R1, R4
281281
SYSCALL $SYS_clock_gettime
282282
MOVD 32(R1), R3
283-
MOVD 48(R1), R5
283+
MOVD 40(R1), R5
284284
JMP finish
285285

286286
TEXT runtime·rtsigprocmask(SB),NOSPLIT|NOFRAME,$0-28

0 commit comments

Comments
 (0)