github.com/aloncn/graphics-go@v0.0.1/src/runtime/rt0_plan9_amd64.s (about) 1 // Copyright 2010 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 "textflag.h" 6 7 TEXT _rt0_amd64_plan9(SB),NOSPLIT,$24 8 MOVQ AX, _tos(SB) 9 LEAQ 16(SP), AX 10 MOVQ AX, _privates(SB) 11 MOVL $1, _nprivates(SB) 12 MOVL inargc-8(FP), DI 13 LEAQ inargv+0(FP), SI 14 MOVQ $runtime·rt0_go(SB), AX 15 JMP AX 16 17 GLOBL _tos(SB), NOPTR, $8 18 GLOBL _privates(SB), NOPTR, $8 19 GLOBL _nprivates(SB), NOPTR, $4