From: MoZhonghua Date: Fri, 12 Nov 2021 08:08:25 +0000 (+0000) Subject: runtime/cgo: fix signature of crosscall_amd64 in comment X-Git-Tag: go1.18beta2~238 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c948823cb7fc898eafb798ad15655663755d0bc9;p=gostls13.git runtime/cgo: fix signature of crosscall_amd64 in comment In CL 289192, crosscall_amd64() was changed to recieve 3 arguments, but the comment was not updated. Change-Id: Iba36c27aa5189e50f3fcc2a50291fecb2ef722c1 GitHub-Last-Rev: e7c041f00c562fdfeec84f1f3ea341713dcc7bf5 GitHub-Pull-Request: golang/go#49539 Reviewed-on: https://go-review.googlesource.com/c/go/+/363442 Reviewed-by: Ian Lance Taylor Reviewed-by: Cherry Mui --- 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