mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove cgocall and asmcgocall
In preparation for rename of cgocall_errno into cgocall and asmcgocall_errno into asmcgocall in the fllowinng CL. rsc requested CL 9387 to be split into two parts. This is first part. Change-Id: I7434f0e4b44dd37017540695834bfcb1eebf0b2f Reviewed-on: https://go-review.googlesource.com/11166 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
24db235deb
commit
2858b73843
15 changed files with 38 additions and 82 deletions
|
|
@ -1093,7 +1093,7 @@ func newm(fn func(), _p_ *p) {
|
|||
ts.g.set(mp.g0)
|
||||
ts.tls = (*uint64)(unsafe.Pointer(&mp.tls[0]))
|
||||
ts.fn = unsafe.Pointer(funcPC(mstart))
|
||||
asmcgocall(_cgo_thread_start, unsafe.Pointer(&ts))
|
||||
asmcgocall_errno(_cgo_thread_start, unsafe.Pointer(&ts))
|
||||
return
|
||||
}
|
||||
newosproc(mp, unsafe.Pointer(mp.g0.stack.hi))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue