shithub: riscv

ref: d0ae2e369e0221e796f4b58255b21ce3592d80dc
dir: /sys/src/libc/386/main9p.s/

View raw version
TEXT	_mainp(SB), 1, $0
	MOVL	AX, _tos(SB)
	MOVL	$_profmain(SB), AX
	PUSHL	AX
	PUSHL	$0
	JMPF	_callmain(SB)
	MOVL	$_profin(SB), AX	/* force loading of profile */

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

TEXT	_callpc(SB), 1, $0
	MOVL	argp+0(FP), AX
	MOVL	4(AX), AX
	RET