diff options
author | Russ Cox <rsc@golang.org> | 2014-09-14 13:57:28 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-14 13:57:28 -0400 |
commit | 9c0ceaaa14192ef299c86b9e73f772c058f661cc (patch) | |
tree | 5ef8abbac2bf4acefce032de2700f144756539e3 /src/runtime/asm_amd64.s | |
parent | 1a394f216243d26bbc74b496f9f4604b4f8a0629 (diff) | |
download | go-9c0ceaaa14192ef299c86b9e73f772c058f661cc.tar.gz |
runtime: mark asmcgocall<>(SB) as having no arguments
It doesn't.
Fixes 386 build.
While we're here, mark runtime.asmcgocall as GO_ARGS,
so that it will work with stack copying. I don't think anything
that uses it can lead to a stack copy, but better safe than sorry.
Certainly the runtime.asmcgocall_errno variant needs
(and already has) GO_ARGS.
TBR=iant
CC=golang-codereviews
https://codereview.appspot.com/138400043
Diffstat (limited to 'src/runtime/asm_amd64.s')
-rw-r--r-- | src/runtime/asm_amd64.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s index d5e2f56ef..da29f61ed 100644 --- a/src/runtime/asm_amd64.s +++ b/src/runtime/asm_amd64.s @@ -624,6 +624,7 @@ TEXT gosave<>(SB),NOSPLIT,$0 // aligned appropriately for the gcc ABI. // See cgocall.c for more details. TEXT runtime·asmcgocall(SB),NOSPLIT,$0-16 + GO_ARGS MOVQ fn+0(FP), AX MOVQ arg+8(FP), BX CALL asmcgocall<>(SB) |