Skip to content

Commit 4a90283

Browse files
committed
runtime: Add return label to jump to from fallback
1 parent 77da464 commit 4a90283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/sys_linux_ppc64x.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ finish:
266266
MOVD 32(R1), R6
267267
MOVD R6, m_vdsoPC(R21)
268268

269+
return:
269270
MOVD R3, sec+0(FP)
270271
MOVW R5, nsec+8(FP)
271272
RET
@@ -276,7 +277,7 @@ fallback:
276277
SYSCALL $SYS_clock_gettime
277278
MOVD 32(R1), R3
278279
MOVD 40(R1), R5
279-
JMP finish
280+
JMP return
280281

281282
TEXT runtime·nanotime1(SB),NOSPLIT,$16-8
282283
MOVD $1, R3 // CLOCK_MONOTONIC

0 commit comments

Comments
 (0)