diff options
Diffstat (limited to 'src/pkg/runtime/cgo/asm_amd64.s')
-rw-r--r-- | src/pkg/runtime/cgo/asm_amd64.s | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/runtime/cgo/asm_amd64.s b/src/pkg/runtime/cgo/asm_amd64.s index 53f7148a2..64f719ab1 100644 --- a/src/pkg/runtime/cgo/asm_amd64.s +++ b/src/pkg/runtime/cgo/asm_amd64.s @@ -2,11 +2,13 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +#include "../../../cmd/ld/textflag.h" + /* * void crosscall2(void (*fn)(void*, int32), void*, int32) * Save registers and call fn with two arguments. */ -TEXT crosscall2(SB),7,$0 +TEXT crosscall2(SB),NOSPLIT,$0 SUBQ $0x58, SP /* keeps stack pointer 32-byte aligned */ MOVQ BX, 0x10(SP) MOVQ BP, 0x18(SP) |