Akshat Kumar | a72bebf | 2012-08-31 13:21:13 -0400 | [diff] [blame] | 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 | |
Russ Cox | cb040d5 | 2014-09-04 23:05:18 -0400 | [diff] [blame] | 5 | #include "textflag.h" |
Keith Randall | 0273dc1 | 2013-08-07 12:20:05 -0700 | [diff] [blame] | 6 | |
Aram Hăvărneanu | decd810 | 2014-07-02 21:04:10 +1000 | [diff] [blame] | 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 |
Russ Cox | 7ba41e9 | 2014-09-03 11:11:16 -0400 | [diff] [blame] | 14 | MOVQ $runtime·rt0_go(SB), AX |
Akshat Kumar | a72bebf | 2012-08-31 13:21:13 -0400 | [diff] [blame] | 15 | JMP AX |
| 16 | |
| 17 | DATA runtime·isplan9(SB)/4, $1 |
Russ Cox | 3c94b1d | 2014-09-24 19:04:06 -0400 | [diff] [blame] | 18 | GLOBL runtime·isplan9(SB), NOPTR, $4 |
| 19 | GLOBL _tos(SB), NOPTR, $8 |
| 20 | GLOBL _privates(SB), NOPTR, $8 |
| 21 | GLOBL _nprivates(SB), NOPTR, $4 |