]> Cypherpunks repositories - gostls13.git/commit
runtime: shared library runtime init for arm
authorSrdjan Petrovic <spetrovic@google.com>
Fri, 3 Apr 2015 16:40:10 +0000 (09:40 -0700)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 13 Apr 2015 18:58:18 +0000 (18:58 +0000)
commit93644c9118dfcd5c7b46d22fbe6b7f1cb1f1b696
tree1a6b7fc7a3522c54793192ea99675ab26489c49c
parentfdab2f92eab01e8aca980c76cba18c2361cb0fc7
runtime: shared library runtime init for arm

Adds the runtime initialization flow for arm akin to amd64.
In particular,we use the library initialization entry point to:
    - create a new OS thread and run the "regular" runtime init stack on
      that thread
    - return immediately from the main (i.e., loader) thread
    - at the first CGO invocation, we wait for the runtime initialization
      to complete.

Verified to work on a Raspberry Pi and an Android phone.

Change-Id: I32f39228ae30a03ce9569287f234b305790fecf6
Reviewed-on: https://go-review.googlesource.com/8455
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Srdjan Petrovic <spetrovic@google.com>
src/runtime/rt0_linux_arm.s
src/runtime/sys_linux_arm.s