diff options
author | Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> | 2020-01-17 17:59:59 -0300 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2020-01-20 15:06:42 +0000 |
commit | 71239b4f491698397149868c88d2c851de2cd49b (patch) | |
tree | 35aacb371529d74c0c19a9f8b57e86b4108d4c4a /src/runtime/sys_linux_ppc64x.s | |
parent | df2999ef43ea49ce1578137017949c0ee660608a (diff) | |
download | go-71239b4f491698397149868c88d2c851de2cd49b.tar.gz go-71239b4f491698397149868c88d2c851de2cd49b.zip |
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>
Diffstat (limited to 'src/runtime/sys_linux_ppc64x.s')
-rw-r--r-- | src/runtime/sys_linux_ppc64x.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_linux_ppc64x.s b/src/runtime/sys_linux_ppc64x.s index de14418338..8629fe3233 100644 --- a/src/runtime/sys_linux_ppc64x.s +++ b/src/runtime/sys_linux_ppc64x.s @@ -280,7 +280,7 @@ fallback: ADD $32, R1, R4 SYSCALL $SYS_clock_gettime MOVD 32(R1), R3 - MOVD 48(R1), R5 + MOVD 40(R1), R5 JMP finish TEXT runtime·rtsigprocmask(SB),NOSPLIT|NOFRAME,$0-28 |