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