...
Text file
src/runtime/rt0_plan9_amd64.s
Documentation: runtime
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
7TEXT _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
17GLOBL _tos(SB), NOPTR, $8
18GLOBL _privates(SB), NOPTR, $8
19GLOBL _nprivates(SB), NOPTR, $4
View as plain text