Skip to content

Commit b79c36d

Browse files
ceseoianlancetaylor
authored andcommitted
[release-branch.go1.13] 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. For #36592 Fixes #38236 Change-Id: Icf838075228dcdd62cf2c1279aa983e5993d66ee Reviewed-on: https://go-review.googlesource.com/c/go/+/215397 Reviewed-by: Tobias Klauser <[email protected]> (cherry picked from commit 71239b4) Reviewed-on: https://go-review.googlesource.com/c/go/+/227179 Reviewed-by: Carlos Eduardo Seo <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 9ed3fb8 commit b79c36d

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
@@ -251,7 +251,7 @@ fallback:
251251
ADD $32, R1, R4
252252
SYSCALL $SYS_clock_gettime
253253
MOVD 32(R1), R3
254-
MOVD 48(R1), R5
254+
MOVD 40(R1), R5
255255
JMP finish
256256

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

0 commit comments

Comments
 (0)