aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_windows_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/sys_windows_386.s')
-rw-r--r--src/runtime/sys_windows_386.s51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/runtime/sys_windows_386.s b/src/runtime/sys_windows_386.s
index c8839b9976..d6b521ab65 100644
--- a/src/runtime/sys_windows_386.s
+++ b/src/runtime/sys_windows_386.s
@@ -156,57 +156,6 @@ TEXT runtime·lastcontinuetramp<ABIInternal>(SB),NOSPLIT,$0-0
MOVL $runtime·lastcontinuehandler(SB), AX
JMP sigtramp<>(SB)
-TEXT runtime·externalthreadhandler<ABIInternal>(SB),NOSPLIT|TOPFRAME,$0
- PUSHL BP
- MOVL SP, BP
- PUSHL BX
- PUSHL SI
- PUSHL DI
- PUSHL 0x14(FS)
- MOVL SP, DX
-
- // setup dummy m, g
- SUBL $m__size, SP // space for M
- MOVL SP, 0(SP)
- MOVL $m__size, 4(SP)
- CALL runtime·memclrNoHeapPointers(SB) // smashes AX,BX,CX
-
- LEAL m_tls(SP), CX
- MOVL CX, 0x14(FS)
- MOVL SP, BX
- SUBL $g__size, SP // space for G
- MOVL SP, g(CX)
- MOVL SP, m_g0(BX)
-
- MOVL SP, 0(SP)
- MOVL $g__size, 4(SP)
- CALL runtime·memclrNoHeapPointers(SB) // smashes AX,BX,CX
- LEAL g__size(SP), BX
- MOVL BX, g_m(SP)
-
- LEAL -32768(SP), CX // must be less than SizeOfStackReserve set by linker
- MOVL CX, (g_stack+stack_lo)(SP)
- ADDL $const__StackGuard, CX
- MOVL CX, g_stackguard0(SP)
- MOVL CX, g_stackguard1(SP)
- MOVL DX, (g_stack+stack_hi)(SP)
-
- PUSHL AX // room for return value
- PUSHL 16(BP) // arg for handler
- CALL 8(BP)
- POPL CX
- POPL AX // pass return value to Windows in AX
-
- get_tls(CX)
- MOVL g(CX), CX
- MOVL (g_stack+stack_hi)(CX), SP
- POPL 0x14(FS)
- POPL DI
- POPL SI
- POPL BX
- POPL BP
- RET
-
GLOBL runtime·cbctxts(SB), NOPTR, $4
TEXT runtime·callbackasm1<ABIInternal>(SB),NOSPLIT,$0