github.com/x04/go/src@v0.0.0-20200202162449-3d481ceb3525/runtime/rt0_linux_riscv64.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_riscv64_linux(SB),NOSPLIT|NOFRAME,$0 8 MOV 0(X2), A0 // argc 9 ADD $8, X2, A1 // argv 10 JMP main(SB) 11 12 TEXT main(SB),NOSPLIT|NOFRAME,$0 13 MOV $runtime·rt0_go(SB), T0 14 JALR ZERO, T0