blob: ec2d9ec827898a403d49597b6549bbd8c0ac7ab4 [file] [log] [blame]
Akshat Kumara72bebf2012-08-31 13:21:13 -04001// 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
Russ Coxcb040d52014-09-04 23:05:18 -04005#include "textflag.h"
Keith Randall0273dc12013-08-07 12:20:05 -07006
Aram Hăvărneanudecd8102014-07-02 21:04:10 +10007TEXT _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
Russ Cox7ba41e92014-09-03 11:11:16 -040014 MOVQ $runtime·rt0_go(SB), AX
Akshat Kumara72bebf2012-08-31 13:21:13 -040015 JMP AX
16
17DATA runtime·isplan9(SB)/4, $1
Russ Cox3c94b1d2014-09-24 19:04:06 -040018GLOBL runtime·isplan9(SB), NOPTR, $4
19GLOBL _tos(SB), NOPTR, $8
20GLOBL _privates(SB), NOPTR, $8
21GLOBL _nprivates(SB), NOPTR, $4