]> Cypherpunks repositories - gostls13.git/commit
runtime: store asmcgocall return PC where the ARM unwind expects it
authorCarl Shapiro <cshapiro@google.com>
Mon, 25 Mar 2013 21:10:28 +0000 (14:10 -0700)
committerCarl Shapiro <cshapiro@google.com>
Mon, 25 Mar 2013 21:10:28 +0000 (14:10 -0700)
commit4cb921bbf1f5d7d161e45e362be1cce35b73fc8b
tree79d0f97c04c3e70c20ed692369cc5393bdb4397f
parentd815a147187c0237a81e84e39035f6275b3fee42
runtime: store asmcgocall return PC where the ARM unwind expects it

The ARM implementation of runtime.cgocallback_gofunc diverged
from the calling convention by leaving a word of garbage at
the top of the stack and storing the return PC above the
locals.  This change stores the return PC at the top of the
stack and removes the save area above the locals.

Update #5124
This CL fixes first part of the ARM issues and added the unwind test.

R=golang-dev, bradfitz, minux.ma, cshapiro, rsc
CC=golang-dev
https://golang.org/cl/7728045
misc/cgo/test/callback.go
misc/cgo/test/cgo_test.go
src/pkg/runtime/asm_arm.s