...

Text file src/runtime/rt0_freebsd_arm64.s

Documentation: runtime

     1// Copyright 2019 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 passes a pointer to the argument block in R0, not RSP,
     8// so _rt0_arm64 cannot be used.
     9TEXT _rt0_arm64_freebsd(SB),NOSPLIT,$0
    10	ADD	$8, R0, R1	// argv (use R0 while it's still the pointer)
    11	MOVD	0(R0), R0	// argc
    12	JMP	runtime·rt0_go(SB)
    13
    14// When building with -buildmode=c-shared, this symbol is called when the shared
    15// library is loaded.
    16TEXT _rt0_arm64_freebsd_lib(SB),NOSPLIT,$0
    17	JMP	_rt0_arm64_lib(SB)

View as plain text