Also make it more portable by not hardcoding pointer sizes.
LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/
127780043
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build arm power64 power64le
+
#include "runtime.h"
#include "arch_GOARCH.h"
#include "malloc.h"
// sighandler saves the lr on stack before faking a call to sigpanic
if(waspanic) {
x = *(uintptr*)frame.sp;
- frame.sp += 4;
+ frame.sp += sizeof(uintptr);
frame.fn = f = runtime·findfunc(frame.pc);
if(f == nil)
frame.pc = x;