diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-04 08:30:54 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-04 08:30:54 -0800 |
| commit | 79e1db2da13b0d9aafe39831bdb0c1b7940aab0c (patch) | |
| tree | e2b3b906ca88ce3e8ce7a528bde4a4f3e69f94c2 /src/runtime/rt0_amd64.s | |
| parent | c7bab46d0f3d4ddf13522470d49ed7d69642760c (diff) | |
| download | go-79e1db2da13b0d9aafe39831bdb0c1b7940aab0c.tar.xz | |
add stub routines stackalloc() and stackfree().
run oldstack on g0's stack, just like newstack does,
so that oldstack can free the old stack.
R=r
DELTA=53 (44 added, 0 deleted, 9 changed)
OCL=20404
CL=20433
Diffstat (limited to 'src/runtime/rt0_amd64.s')
| -rw-r--r-- | src/runtime/rt0_amd64.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/rt0_amd64.s b/src/runtime/rt0_amd64.s index ad86c56a59..73e9251210 100644 --- a/src/runtime/rt0_amd64.s +++ b/src/runtime/rt0_amd64.s @@ -42,7 +42,7 @@ TEXT _rt0_amd64(SB),7,$-8 CALL sys·newproc(SB) POPQ AX POPQ AX - + // start this M CALL mstart(SB) @@ -89,10 +89,10 @@ TEXT gosave(SB), 7, $0 * support for morestack */ -// return point when leaving new stack. save AX, jmp to oldstack to switch back +// return point when leaving new stack. save AX, jmp to lessstack to switch back TEXT retfromnewstack(SB), 7, $0 MOVQ AX, 16(R14) // save AX in m->cret - MOVQ $oldstack(SB), AX + MOVQ $lessstack(SB), AX JMP AX // gogo, returning 2nd arg instead of 1 |
