1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:57:57 -07:00

runtime: fix windows/amd64

Maybe.

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/5754091
This commit is contained in:
Russ Cox 2012-03-12 16:48:16 -04:00
parent 4e18bfb930
commit 2d3cc97c9c

View File

@ -116,7 +116,7 @@ TEXT runtime·setlasterror(SB),7,$0
MOVL AX, 0x68(CX)
RET
TEXT runtime·sigtramp(SB),7,$56
TEXT runtime·sigtramp(SB),7,$0
// CX: exception record
// R8: context
@ -125,7 +125,12 @@ TEXT runtime·sigtramp(SB),7,$56
MOVL $1, AX
JNZ sigdone
// copy arguments for call to sighandler
// copy arguments for call to sighandler.
// Stack adjustment is here to hide from 6l,
// which doesn't understand that sigtramp
// runs on essentially unlimited stack.
SUBQ $56, SP
MOVQ CX, 0(SP)
MOVQ R8, 8(SP)
@ -151,6 +156,8 @@ TEXT runtime·sigtramp(SB),7,$56
MOVQ 32(SP), BP
MOVQ 40(SP), SI
MOVQ 48(SP), DI
ADDQ $56, SP
sigdone:
RET