diff options
author | Shenghou Ma <minux@golang.org> | 2014-08-14 11:59:58 -0400 |
---|---|---|
committer | Shenghou Ma <minux@golang.org> | 2014-08-14 11:59:58 -0400 |
commit | 6155cd4315080223580b41bf954a9aa29c007086 (patch) | |
tree | 692358bd9fc53d77d74db906602988926840e239 /src/pkg | |
parent | 62cd30b6816b230629d1ed6075efb2a561491619 (diff) | |
download | go-6155cd4315080223580b41bf954a9aa29c007086.tar.gz |
[dev.power64] runtime: fix time.now
Was reading a uint64 field with a MOVW, which has endian issues.
LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://codereview.appspot.com/122550043
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg')
-rw-r--r-- | src/pkg/runtime/sys_linux_power64x.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/sys_linux_power64x.s b/src/pkg/runtime/sys_linux_power64x.s index df808a83c..1d985d1af 100644 --- a/src/pkg/runtime/sys_linux_power64x.s +++ b/src/pkg/runtime/sys_linux_power64x.s @@ -83,7 +83,7 @@ TEXT runtime·read(SB),NOSPLIT,$-8-24 TEXT runtime·getrlimit(SB),NOSPLIT,$-8-24 MOVW 8(R1), R3 MOVD 16(R1), R4 - SYSCALL $SYS_ugetrlimit // ??? why not use SYS_getrlimit + SYSCALL $SYS_ugetrlimit RETURN TEXT runtime·usleep(SB),NOSPLIT,$-8-16 @@ -132,7 +132,7 @@ TEXT time·now(SB),NOSPLIT,$16 MOVD $0, R4 SYSCALL $SYS_gettimeofday MOVD 0(R1), R3 // sec - MOVW 8(R1), R5 // usec + MOVD 8(R1), R5 // usec MOVD $1000, R4 MULLD R4, R5 MOVD R3, sec+0(FP) |