Aram Hăvărneanu | 846ee04 | 2015-03-08 14:20:20 +0100 | [diff] [blame] | 1 | // Copyright 2015 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_arm64_linux(SB),NOSPLIT,$-8 | ||||
8 | MOVD 0(RSP), R0 // argc | ||||
9 | ADD $8, RSP, R1 // argv | ||||
10 | BL main(SB) | ||||
11 | |||||
12 | TEXT main(SB),NOSPLIT,$-8 | ||||
13 | MOVD $runtime·rt0_go(SB), R2 | ||||
14 | BL (R2) | ||||
15 | exit: | ||||
16 | MOVD $0, R0 | ||||
17 | MOVD $94, R8 // sys_exit | ||||
18 | SVC | ||||
19 | B exit |