]> Cypherpunks repositories - gostls13.git/commit
runtime: use abi.FuncPCABI0 for libc syscall wrappers
authorCherry Zhang <cherryyz@google.com>
Fri, 23 Apr 2021 23:50:42 +0000 (19:50 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 26 Apr 2021 18:44:31 +0000 (18:44 +0000)
commitc4303139925d45b3e784d61dd3901f66c41189d4
tree6dab55f237accc445f7df325a04c6a3324ee04fe
parent8ff1da0b8182667560ed6bd3079ad7692e5c722b
runtime: use abi.FuncPCABI0 for libc syscall wrappers

In CL 288092 we made Darwin syscall wrappers as ABIInternal, so
their addresses taken from Go using funcPC are the actual function
entries, not the wrappers.

As we introduced internal/abi.FuncPCABIxxx intrinsics, use that.
And change the assembly functions back to ABI0.

Change-Id: I50645af74883e2d5dfcd67a5e8c739222c6f645b
Reviewed-on: https://go-review.googlesource.com/c/go/+/313250
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_amd64.s