Skip to content

Commit cce371c

Browse files
committed
runtime: fix wrong offset when calling syscall in nanotime
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.
1 parent 316fd8c commit cce371c

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)