aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/panic.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-06-12 15:22:26 -0400
committerRuss Cox <rsc@golang.org>2013-06-12 15:22:26 -0400
commitd67e7e3acff13d845f8952b45daf9b794fa4ad51 (patch)
tree8fec98d66622c42db3ba6862e55c671e2f98079a /src/pkg/runtime/panic.c
parenta8ad859c30c8d4c30c38ac41d858c9030d025ddd (diff)
downloadgo-d67e7e3acff13d845f8952b45daf9b794fa4ad51.tar.xz
runtime: add lr, ctxt, ret to Gobuf
Add gostartcall and gostartcallfn. The old gogocall = gostartcall + gogo. The old gogocallfn = gostartcallfn + gogo. R=dvyukov, minux.ma CC=golang-dev https://golang.org/cl/10036044
Diffstat (limited to 'src/pkg/runtime/panic.c')
-rw-r--r--src/pkg/runtime/panic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c
index b7075995f9..f6e9dba4e6 100644
--- a/src/pkg/runtime/panic.c
+++ b/src/pkg/runtime/panic.c
@@ -277,7 +277,8 @@ recovery(G *gp)
else
gp->sched.sp = (uintptr)argp - 2*sizeof(uintptr);
gp->sched.pc = pc;
- runtimeĀ·gogo(&gp->sched, 1);
+ gp->sched.ret = 1;
+ runtimeĀ·gogo(&gp->sched);
}
// Free stack frames until we hit the last one