From: Russ Cox Date: Mon, 15 Dec 2008 16:56:32 +0000 (-0800) Subject: correct arg register in bsdthread_create X-Git-Tag: weekly.2009-11-06~2509 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7ca5a0d323058ef6f749f5c3b146081b931da113;p=gostls13.git correct arg register in bsdthread_create R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=21040 CL=21176 --- diff --git a/src/runtime/sys_amd64_darwin.s b/src/runtime/sys_amd64_darwin.s index a276576d9d..92af21c935 100644 --- a/src/runtime/sys_amd64_darwin.s +++ b/src/runtime/sys_amd64_darwin.s @@ -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, R8 // flags MOVQ $(0x2000000+360), AX // bsdthread_create SYSCALL JCC 2(PC)