aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stack.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-02-22 10:47:54 -0500
committerRuss Cox <rsc@golang.org>2013-02-22 10:47:54 -0500
commit6066fdcf38bbf92bd551f74a6db4cb72306ed493 (patch)
treebc1e9b8ff9da6106240a4e9c1a8f8d73ff235a21 /src/pkg/runtime/stack.c
parentd9001ef012aabcd28c66a2d1f321078f45a2ffac (diff)
downloadgo-6066fdcf38bbf92bd551f74a6db4cb72306ed493.tar.xz
cmd/6g, cmd/8g: switch to DX for indirect call block
runtime: add context argument to gogocall Too many other things use AX, and at least one (stack zeroing) cannot be moved onto a different register. Use the less special DX instead. Preparation for step 2 of http://golang.org/s/go11func. Nothing interesting here, just split out so that we can see it's correct before moving on. R=ken2 CC=golang-dev https://golang.org/cl/7395050
Diffstat (limited to 'src/pkg/runtime/stack.c')
-rw-r--r--src/pkg/runtime/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c
index d1d5c8f3f9..d5cc3a7329 100644
--- a/src/pkg/runtime/stack.c
+++ b/src/pkg/runtime/stack.c
@@ -276,7 +276,7 @@ runtime·newstack(void)
if(reflectcall)
runtime·gogocallfn(&label, (FuncVal*)m->morepc);
else
- runtime·gogocall(&label, m->morepc);
+ runtime·gogocall(&label, m->morepc, m->cret);
*(int32*)345 = 123; // never return
}