diff options
| author | Russ Cox <rsc@golang.org> | 2014-08-15 15:28:08 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-15 15:28:08 -0400 |
| commit | e445f75dbc2e6a4f807017bd4f0cc935ab02c36a (patch) | |
| tree | 0de4a4d90590a28ffdd96180d4e41c46d9622fe6 /src | |
| parent | fd21b9f8b5fbec92d5a332b91e2eedce6a2a9ad4 (diff) | |
| download | go-e445f75dbc2e6a4f807017bd4f0cc935ab02c36a.tar.xz | |
[dev.power64] runtime: fix usleep not to smash saved LR
LGTM=minux
R=minux
CC=golang-codereviews
https://golang.org/cl/130760043
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/runtime/sys_linux_power64x.s | 6 |
1 files 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 |
