From 7ca5a0d323058ef6f749f5c3b146081b931da113 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 15 Dec 2008 08:56:32 -0800 Subject: [PATCH] correct arg register in bsdthread_create R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=21040 CL=21176 --- src/runtime/sys_amd64_darwin.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.48.1