diff options
Diffstat (limited to 'src/pkg/runtime/cgo/asm_386.s')
-rw-r--r-- | src/pkg/runtime/cgo/asm_386.s | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/pkg/runtime/cgo/asm_386.s b/src/pkg/runtime/cgo/asm_386.s deleted file mode 100644 index a895083f1..000000000 --- a/src/pkg/runtime/cgo/asm_386.s +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#include "textflag.h" - -/* - * void crosscall2(void (*fn)(void*, int32), void*, int32) - * Save registers and call fn with two arguments. - */ -TEXT crosscall2(SB),NOSPLIT,$0 - PUSHL BP - MOVL SP, BP - PUSHL BX - PUSHL SI - PUSHL DI - - SUBL $8, SP - MOVL 16(BP), AX - MOVL AX, 4(SP) - MOVL 12(BP), AX - MOVL AX, 0(SP) - MOVL 8(BP), AX - CALL AX - ADDL $8, SP - - POPL DI - POPL SI - POPL BX - POPL BP - RET |