xref: /csrg-svn/sys/vax/stand/srt0.c (revision 414)
1 #	srt0.c	1.3	07/28/80
2 
3 # Startup code for standalone system
4 # Non-relocating version -- for programs which are loaded by boot
5 
6 	.globl	_end
7 	.globl	_main
8 	.globl	__rtt
9 	.globl	_edata
10 
11 	.set	PHYSUBA,0x20006000	# uba 0
12 	.set	PHYSUMEM,0x2013e000	# unibus memory
13 
14 	.set	HIGH,31		# mask for total disable
15 
16 	.word	0x0
17 	mtpr	$HIGH,$IPL		# just in case
18 	movl	$1,PHYSUBA+4		# init
19 clr:
20 	clrl	(r0)+
21 	cmpl	r0,sp
22 	jlss	clr
23 start:
24 	movl	$RELOC-0x2000,sp
25 	calls	$0,_main
26 	jmp	start
27 
28 __rtt:
29 	.word	0x0
30 	jmp	start
31