...

Text file src/runtime/rt0_linux_riscv64.s

Documentation: runtime

     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
     7TEXT _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// When building with -buildmode=c-shared, this symbol is called when the shared
    13// library is loaded.
    14TEXT _rt0_riscv64_linux_lib(SB),NOSPLIT,$0
    15	JMP	_rt0_riscv64_lib(SB)
    16
    17
    18TEXT main(SB),NOSPLIT|NOFRAME,$0
    19	MOV	$runtime·rt0_go(SB), T0
    20	JALR	ZERO, T0

View as plain text