shithub: riscv

ref: 30d4d8984bfc64e971bfbb3b913c37ed8a8da17b
dir: /sys/src/9/pc/initcode.s/

View raw version
#include "/sys/src/libc/9syscall/sys.h"

TEXT	main(SB),$0

	/*
	 *  exec("/boot", bootv)
	 */
	LEAL	4(SP),AX
	PUSHL	AX
	LEAL	boot(SB),AX
	PUSHL	AX
	PUSHL	$0
	MOVL	$EXEC,AX
	INT	$64

	/*
	 *  should never get here
	 */
here:
	JMP	here

GLOBL	boot+0(SB),$6
DATA	boot+0(SB)/5,$"/boot"