github.com/primecitizens/pcz/std@v0.2.1/rt0/rt0_riscv64.s (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build !noos && riscv64 5 6 #include "textflag.h" 7 8 #ifdef GOOS_linux 9 10 TEXT rt0(SB),NOSPLIT|NOFRAME|TOPFRAME,$0 11 MOV 0(X2), A0 // argc 12 ADD $8, X2, A1 // argv 13 JMP ·rt0<ABIInternal>(SB) 14 15 #endif