xref: /csrg-svn/sys/vax/stand/srt0.c (revision 3263)
1 /*	srt0.c	4.5	03/15/81	*/
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 	mtpr	$_Scbbase,$SCBB
22 	movl	$reloc-0x2400,sp
23 start:
24 	movab	_edata,r0
25 clr:
26 	clrl	(r0)+
27 	cmpl	r0,sp
28 	jlss	clr
29 	calls	$0,_configure
30 	calls	$0,_main
31 	jmp	start
32 
33 __rtt:
34 	.word	0x0
35 	jmp	start
36