mirror of
https://github.com/golang/go
synced 2024-11-21 21:34:40 -07:00
runtime: fix windows/amd64
Maybe. TBR=bradfitz CC=golang-dev https://golang.org/cl/5754091
This commit is contained in:
parent
4e18bfb930
commit
2d3cc97c9c
@ -116,7 +116,7 @@ TEXT runtime·setlasterror(SB),7,$0
|
|||||||
MOVL AX, 0x68(CX)
|
MOVL AX, 0x68(CX)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
TEXT runtime·sigtramp(SB),7,$56
|
TEXT runtime·sigtramp(SB),7,$0
|
||||||
// CX: exception record
|
// CX: exception record
|
||||||
// R8: context
|
// R8: context
|
||||||
|
|
||||||
@ -125,7 +125,12 @@ TEXT runtime·sigtramp(SB),7,$56
|
|||||||
MOVL $1, AX
|
MOVL $1, AX
|
||||||
JNZ sigdone
|
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 CX, 0(SP)
|
||||||
MOVQ R8, 8(SP)
|
MOVQ R8, 8(SP)
|
||||||
|
|
||||||
@ -151,6 +156,8 @@ TEXT runtime·sigtramp(SB),7,$56
|
|||||||
MOVQ 32(SP), BP
|
MOVQ 32(SP), BP
|
||||||
MOVQ 40(SP), SI
|
MOVQ 40(SP), SI
|
||||||
MOVQ 48(SP), DI
|
MOVQ 48(SP), DI
|
||||||
|
ADDQ $56, SP
|
||||||
|
|
||||||
sigdone:
|
sigdone:
|
||||||
RET
|
RET
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user