| // Copyright 2016 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. |
| // Called by C code generated by cmd/cgo. |
| // func crosscall2(fn func(a unsafe.Pointer, n int32, ctxt uintptr), a unsafe.Pointer, n int32, ctxt uintptr) |
| // Saves C callee-saved registers and calls fn with three arguments. |
| TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0 |
| // Start with standard C stack frame layout and linkage. |
| // Save R6-R15 in the register save area of the calling function. |
| // Allocate 96 bytes on the stack. |
| // Save F8-F15 in our stack frame. |
| // Initialize Go ABI environment. |
| BL (R2) // fn(arg1, arg2, arg3) |
| // De-allocate stack frame. |