• Elias Naur's avatar
    runtime: use libc for signal functions on iOS · 021c39d7
    Elias Naur authored
    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: 's avatarKeith Randall <khr@golang.org>
    021c39d7
asm_arm.s 26.7 KB