shithub: riscv

ref: 7aceac32e8fae763634f28cfccd9ce2356fccab5
dir: /sys/src/ape/lib/ap/power64/main9p.s/

View raw version
GLOBL	_tos(SB), $8

TEXT	_mainp(SB), 1, $-8
	ADD	$-16, R1
	MOVD	$0, R0
	MOVD	$setSB(SB), R2
	MOVD	R3, _tos(SB)

	MOVD	$_profmain(SB), R3
	MOVD	R0, LR
	MOVD	$_callmain(SB), R4
	MOVD	R4, CTR
	BR	(CTR)

TEXT	_callpc(SB), 1, $-8
	MOVD	argp-8(FP), R3
TEXT	_saveret(SB), 1, $-8
TEXT	_savearg(SB), 1, $-8
	RETURN