aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/signal_ppc64x.go
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-08 21:52:03 +1300
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-18 22:14:00 +0000
commita4855812e259f91914328659a37dc3a2582da7ba (patch)
tree69e99faa7dca898b98258f8307e09e202cdb85d3 /src/runtime/signal_ppc64x.go
parent45c06b27a44a65c219a7445278b129c868332a6c (diff)
downloadgo-a4855812e259f91914328659a37dc3a2582da7ba.tar.gz
go-a4855812e259f91914328659a37dc3a2582da7ba.zip
runtime: add a constant for the smallest possible stack frame
Shared libraries on ppc64le will require a larger minimum stack frame (because the ABI mandates that the TOC pointer is available at 24(R1)). So to prepare for this, make a constant for the fixed part of a stack and use that where necessary. Change-Id: I447949f4d725003bb82e7d2cf7991c1bca5aa887 Reviewed-on: https://go-review.googlesource.com/15523 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/signal_ppc64x.go')
-rw-r--r--src/runtime/signal_ppc64x.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/signal_ppc64x.go b/src/runtime/signal_ppc64x.go
index bad9fe6de4..71055b6bdb 100644
--- a/src/runtime/signal_ppc64x.go
+++ b/src/runtime/signal_ppc64x.go
@@ -82,7 +82,7 @@ func sighandler(sig uint32, info *siginfo, ctxt unsafe.Pointer, gp *g) {
// functions are correctly handled. This smashes
// the stack frame but we're not going back there
// anyway.
- sp := c.sp() - ptrSize
+ sp := c.sp() - minFrameSize
c.set_sp(sp)
*(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()