]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: use correct register in darwin/386 pipe_trampoline
authorIan Lance Taylor <iant@golang.org>
Sun, 30 Jun 2019 23:19:58 +0000 (16:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 1 Jul 2019 21:30:23 +0000 (21:30 +0000)
Updates #31264

Change-Id: I745744dd3fdaa432d70e8dc9336547017bac89ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/184377
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Elias Naur <mail@eliasnaur.com>
src/runtime/sys_darwin_386.s

index ac5f4e4d63c8d7945dc5e513e01f20ab71486753..e653c54f614dc128778895c193ca06aad5f8e85b 100644 (file)
@@ -88,7 +88,7 @@ TEXT runtime·pipe_trampoline(SB),NOSPLIT,$0
        PUSHL   BP
        MOVL    SP, BP
        SUBL    $8, SP
-       MOVL    16(SP), CX              // arg 1 pipefd
+       MOVL    16(SP), AX              // arg 1 pipefd
        MOVL    AX, 0(SP)
        CALL    libc_pipe(SB)
        TESTL   AX, AX