shithub: purgatorio

ref: 87d72e7e8614d96b4f61adae5fb05b0534231c4c
dir: /emu/Plan9/asm-mips.s/

View raw version

	TEXT	tramp(SB), 1, $0
	ADDU	$-8, R1, R3		/* new stack */
	MOVW	4(FP), R2		/* func to exec */
	MOVW	8(FP), R1		/* arg to reg */
	MOVW	R3, R29			/* new stack */
	JAL	(R2)
	MOVW	R0, R1
	JMP	_exits(SB)

	TEXT	vstack(SB), 1, $0	/* Passes &targ through R1 */
	MOVW	ustack(SB), R29
	JMP	exectramp(SB)
	RET

	TEXT	FPsave(SB), 1, $0
	MOVW	FCR31, R2
	MOVW	R2, 0(R1)
	RET

	TEXT	FPrestore(SB), 1, $0
	MOVW	0(R1), R2
	MOVW	R2, FCR31
	RET