From e7c041f00c562fdfeec84f1f3ea341713dcc7bf5 Mon Sep 17 00:00:00 2001 From: MoZhonghua Date: Fri, 12 Nov 2021 15:49:14 +0800 Subject: [PATCH] runtime/cgo: fix signature of crosscall_amd64 in comment In commit 63de211014, crosscall_amd64() was changed to recieve 3 arguments, but the commet was not updated. --- src/runtime/cgo/gcc_amd64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/cgo/gcc_amd64.S b/src/runtime/cgo/gcc_amd64.S index d75f864666..46699d1d9c 100644 --- a/src/runtime/cgo/gcc_amd64.S +++ b/src/runtime/cgo/gcc_amd64.S @@ -12,7 +12,7 @@ #endif /* - * void crosscall_amd64(void (*fn)(void)) + * void crosscall_amd64(void (*fn)(void), void (*setg_gcc)(void*), void *g) * * Calling into the 6c tool chain, where all registers are caller save. * Called from standard x86-64 ABI, where %rbx, %rbp, %r12-%r15