From e445f75dbc2e6a4f807017bd4f0cc935ab02c36a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 15 Aug 2014 15:28:08 -0400 Subject: [PATCH] [dev.power64] runtime: fix usleep not to smash saved LR LGTM=minux R=minux CC=golang-codereviews https://golang.org/cl/130760043 --- src/pkg/runtime/sys_linux_power64x.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.50.0