| // 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. |
| void *initcgo; /* filled in by dynamic linker when Cgo is available */ |
| void sys·entersyscall(void); |
| void sys·exitsyscall(void); |
| cgocall(void (*fn)(void*), void *arg) |
| throw("cgocall unavailable"); |
| * Announce we are entering a system call |
| * so that the scheduler knows to create another |
| * M to run goroutines while we are in the |
| runtime·Cgocalls(int64 ret) |
| void (*_cgo_malloc)(void*); |
| void (*_cgo_free)(void*); |
| cgocall(_cgo_malloc, &a); |