1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:14:40 -07:00

runtime: debugging help on 386

R=r
CC=golang-dev
https://golang.org/cl/3502041
This commit is contained in:
Russ Cox 2010-12-07 17:19:36 -05:00
parent 49014c5b12
commit 7e14bd81f4

View File

@ -177,7 +177,9 @@ TEXT runtime·morestack(SB),7,$0
// Call newstack on m's scheduling stack. // Call newstack on m's scheduling stack.
MOVL m_g0(BX), BP MOVL m_g0(BX), BP
MOVL BP, g(CX) MOVL BP, g(CX)
MOVL (m_sched+gobuf_sp)(BX), SP MOVL (m_sched+gobuf_sp)(BX), AX
MOVL -4(AX), BX // fault if CALL would, before smashing SP
MOVL AX, SP
CALL runtime·newstack(SB) CALL runtime·newstack(SB)
MOVL $0, 0x1003 // crash if newstack returns MOVL $0, 0x1003 // crash if newstack returns
RET RET