]> Cypherpunks repositories - gostls13.git/commitdiff
correct arg register in bsdthread_create
authorRuss Cox <rsc@golang.org>
Mon, 15 Dec 2008 16:56:32 +0000 (08:56 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 15 Dec 2008 16:56:32 +0000 (08:56 -0800)
R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=21040
CL=21176

src/runtime/sys_amd64_darwin.s

index a276576d9d3e1db20d8ed961cf4d3f6369544667..92af21c935a008d0b6ca8fa0d62ca135318d0df3 100644 (file)
@@ -157,7 +157,7 @@ TEXT bsdthread_create(SB),7,$-8
        MOVQ    m+16(SP), SI    // "arg"
        MOVQ    stk+8(SP), DX   // stack
        MOVQ    g+24(SP), R10   // "pthread"
-       MOVQ    $0, R10 // flags
+       MOVQ    $0, R // flags
        MOVQ    $(0x2000000+360), AX    // bsdthread_create
        SYSCALL
        JCC 2(PC)