shithub: riscv

ref: 29b1f55e7390043efef033578083694fb85dbe99
dir: /sys/src/libc/mips/main9p.s/

View raw version
TEXT	_mainp(SB), 1, $0
	ADD	$-8, R29
	MOVW	$setR30(SB), R30
	MOVW	R1, _tos(SB)

	MOVW	$_profmain(SB), R1
	MOVW	$0, R31
	JMP	_callmain(SB)
	MOVW	$_profin(SB), R0	/* force loading of profile */

TEXT	_saveret(SB), 1, $0
TEXT	_savearg(SB), 1, $0
	RET

TEXT	_callpc(SB), 1, $0
	MOVW	argp-4(FP), R1
	RET