github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/src/runtime/rt0_linux_riscv.s (about) 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_riscv_linux(SB),NOSPLIT,$0 8 MOV 0(X2), A0 // argc 9 ADD $8, X2, A1 // argv 10 JMP main(SB) 11 12 TEXT main(SB),NOSPLIT,$0 13 MOV $runtime·rt0_go(SB), T0 14 JALR ZERO, T0