xref: /plan9-contrib/sys/src/9/pc/initcode.s (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1#include "/sys/src/libc/9syscall/sys.h"
2
3TEXT	main(SB),$0
4
5	/*
6	 *  exec("/boot", bootv)
7	 */
8	LEAL	4(SP),AX
9	PUSHL	AX
10	LEAL	boot(SB),AX
11	PUSHL	AX
12	PUSHL	$0
13	MOVL	$EXEC,AX
14	INT	$64
15
16	/*
17	 *  should never get here
18	 */
19here:
20	JMP	here
21
22GLOBL	boot+0(SB),$6
23DATA	boot+0(SB)/5,$"/boot"
24