]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.8] runtime: fix usleep by correctly setting nanoseconds parameter...
authorpvoicu <pvoicu@paypal.com>
Fri, 18 Aug 2017 10:32:49 +0000 (03:32 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 20 Oct 2017 16:36:12 +0000 (12:36 -0400)
Fixes #21518

Change-Id: Idd67e3f0410d0ce991b34dcc0c8f15e0d5c529c9
Reviewed-on: https://go-review.googlesource.com/56850
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/sys_linux_386.s

index ba6f7cc8dd3fcf99af8f97dd79ee0f7db43c88e2..04675d1689158524e397f74d64f645fb590d1ac6 100644 (file)
@@ -100,7 +100,7 @@ TEXT runtimeĀ·usleep(SB),NOSPLIT,$8
        MOVL    AX, 0(SP)
        MOVL    $1000, AX       // usec to nsec
        MULL    DX
-       MOVL    DX, 4(SP)
+       MOVL    AX, 4(SP)
 
        // pselect6(0, 0, 0, 0, &ts, 0)
        MOVL    $308, AX