From: Russ Cox Date: Fri, 15 Aug 2014 19:28:08 +0000 (-0400) Subject: [dev.power64] runtime: fix usleep not to smash saved LR X-Git-Tag: go1.5beta1~2684^2~25^2~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e445f75dbc2e6a4f807017bd4f0cc935ab02c36a;p=gostls13.git [dev.power64] runtime: fix usleep not to smash saved LR LGTM=minux R=minux CC=golang-codereviews https://golang.org/cl/130760043 --- diff --git a/src/pkg/runtime/sys_linux_power64x.s b/src/pkg/runtime/sys_linux_power64x.s index 1d985d1af1..fbd59a052f 100644 --- a/src/pkg/runtime/sys_linux_power64x.s +++ b/src/pkg/runtime/sys_linux_power64x.s @@ -91,17 +91,17 @@ TEXT runtime·usleep(SB),NOSPLIT,$-8-16 MOVD R3, R5 MOVW $1000000, R4 DIVD R4, R3 - MOVD R3, 0(R1) + MOVD R3, 8(R1) MULLD R3, R4 SUB R4, R5 - MOVD R5, 8(R1) + MOVD R5, 16(R1) // select(0, 0, 0, 0, &tv) MOVW $0, R3 MOVW $0, R4 MOVW $0, R5 MOVW $0, R6 - MOVD R1, R7 + ADD $8, R1, R7 SYSCALL $SYS_newselect RETURN