]> Cypherpunks repositories - gostls13.git/commit
runtime: use libc for signal functions on iOS
authorElias Naur <elias.naur@gmail.com>
Thu, 7 Jun 2018 10:19:42 +0000 (12:19 +0200)
committerKeith Randall <khr@golang.org>
Tue, 12 Jun 2018 17:05:46 +0000 (17:05 +0000)
commit021c39d7a3361290d9e29497cf2a4a8fd2ee7b5c
tree573c7176129e0e5a0ed8b30b867453f04de0aa4b
parentec989337c5d3203d52de1a2314813996c711fce6
runtime: use libc for signal functions on iOS

Also:
 - Add extra SystemStack space for darwin/arm64 just
like for darwin/arm.
 - Removed redundant stack alignment; the arm64 hardware enforces
 the 16 byte alignment.
 - Save and restore the g registers at library initialization.
 - Zero g registers since libpreinit can call libc functions
 that in turn use asmcgocall. asmcgocall requires an initialized g.
 - Change asmcgocall to work even if no g is set. The change mimics
 amd64.

Change-Id: I1b8c63b07cfec23b909c0d215b50dc229f8adbc8
Reviewed-on: https://go-review.googlesource.com/117176
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/vet/all/whitelist/darwin_arm.txt
src/cmd/vet/all/whitelist/darwin_arm64.txt
src/runtime/asm_arm.s
src/runtime/asm_arm64.s
src/runtime/rt0_darwin_arm64.s
src/runtime/stack.go
src/runtime/sys_darwin_arm.s
src/runtime/sys_darwin_arm64.s