shithub: riscv

ref: 974c4fc768c12af947af13de75c227ef7e6ca50d
dir: /sys/src/9/bitsy/init9.s/

View raw version
TEXT	_main(SB),$8
	MOVW	$setR12(SB), R12	/* load the SB */
	MOVW	$boot(SB), R0

	ADD	$12, R13, R1	/* get a pointer to 0(FP) */

	MOVW	R0, 4(R13)
	MOVW	R1, 8(R13)

	BL	startboot(SB)