1 // Copyright 2011 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #include "go_asm.h" 6 #include "go_tls.h" 7 #include "textflag.h" 8 9 TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8 10 LEAQ 8(SP), SI // argv 11 MOVQ 0(SP), DI // argc 12 MOVQ $main(SB), AX 13 JMP AX 14 15 TEXT main(SB),NOSPLIT,$-8 16 MOVQ $runtimert0_go(SB), AX 17 JMP AX 18 19 DATA runtimeiswindows(SB)/4, $1 20 GLOBL runtimeiswindows(SB), NOPTR, $4 21