diff options
| author | Jingcheng Zhang <diogin@gmail.com> | 2012-12-19 00:30:29 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2012-12-19 00:30:29 +0800 |
| commit | 70e967b7bc6583735c098a91395b9f42b017e006 (patch) | |
| tree | 552bd91d9d3fcba81b6b9dd06e24340889c56402 /src/pkg/runtime/sys_linux_amd64.s | |
| parent | a9d82423110dc39ede4503ea120db1d739119a8f (diff) | |
| download | go-70e967b7bc6583735c098a91395b9f42b017e006.tar.xz | |
runtime: use "mp" and "gp" instead of "m" and "g" for local variable name to avoid confusion with the global "m" and "g".
R=golang-dev, minux.ma, rsc
CC=bradfitz, golang-dev
https://golang.org/cl/6939064
Diffstat (limited to 'src/pkg/runtime/sys_linux_amd64.s')
| -rw-r--r-- | src/pkg/runtime/sys_linux_amd64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/sys_linux_amd64.s b/src/pkg/runtime/sys_linux_amd64.s index e8078158c6..3f7a207f37 100644 --- a/src/pkg/runtime/sys_linux_amd64.s +++ b/src/pkg/runtime/sys_linux_amd64.s @@ -268,12 +268,12 @@ TEXT runtime·futex(SB),7,$0 SYSCALL RET -// int64 clone(int32 flags, void *stack, M *m, G *g, void (*fn)(void)); +// int64 clone(int32 flags, void *stack, M *mp, G *gp, void (*fn)(void)); TEXT runtime·clone(SB),7,$0 MOVL flags+8(SP), DI MOVQ stack+16(SP), SI - // Copy m, g, fn off parent stack for use by child. + // Copy mp, gp, fn off parent stack for use by child. // Careful: Linux system call clobbers CX and R11. MOVQ mm+24(SP), R8 MOVQ gg+32(SP), R9 |
