github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/runtime/rt0_freebsd_arm.s (about) 1 // Copyright 2012 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 // FreeBSD and Linux use the same linkage to main 8 9 TEXT _rt0_arm_freebsd(SB),NOSPLIT,$-4 10 MOVW (R13), R0 // argc 11 MOVW $4(R13), R1 // argv 12 MOVM.DB.W [R0-R1], (R13) 13 B runtime·rt0_go(SB) 14 15 TEXT main(SB),NOSPLIT,$-4 16 MOVM.DB.W [R0-R1], (R13) 17 MOVW $runtime·rt0_go(SB), R4 18 B (R4)