xref: /csrg-svn/sys/vax/stand/srt0.c (revision 3343)
1 /*	srt0.c	4.6	81/03/21	*/
2 
3 #include "../h/mtpr.h"
4 
5 /*
6  * Startup code for standalone system
7  * Non-relocating version -- for programs which are loaded by boot
8  */
9 
10 	.globl	_edata
11 	.globl	_main
12 	.globl	__rtt
13 	.globl	_configure
14 	.set	reloc,RELOC
15 
16 	.set	HIGH,31		# mask for total disable
17 
18 entry:	.globl	entry
19 	.word	0x0
20 	mtpr	$HIGH,$IPL		# just in case
21 	movl	$reloc-0x2400,sp
22 start:
23 	movab	_edata,r0
24 clr:
25 	clrl	(r0)+
26 	cmpl	r0,sp
27 	jlss	clr
28 	calls	$0,_configure
29 	calls	$0,_main
30 	jmp	start
31 
32 __rtt:
33 	.word	0x0
34 	jmp	start
35