xref: /csrg-svn/sys/vax/stand/srt0.c (revision 411)
1*411Sbill #	srt0.c	1.2	07/28/80
2326Sbill 
3326Sbill # Startup code for standalone system
4326Sbill # Non-relocating version -- for programs which are loaded by boot
5326Sbill 
6326Sbill 	.globl	_end
7326Sbill 	.globl	_main
8326Sbill 	.globl	__rtt
9326Sbill 	.globl	_edata
10326Sbill 
11326Sbill 	.set	PHYSUBA,0x20006000	# uba 0
12326Sbill 	.set	PHYSMBA0,0x20010000	# mba 0
13326Sbill 	.set	PHYSMBA1,0x20012000	# mba 1
14326Sbill 	.set	PHYSUMEM,0x2013e000	# unibus memory
15326Sbill 
16326Sbill 	.set	HIGH,31		# mask for total disable
17326Sbill 
18326Sbill 	.word	0x0
19326Sbill 	mtpr	$HIGH,$IPL		# just in case
20326Sbill 	movl	$1,PHYSMBA0+4		# init
21326Sbill 	movl	$1,PHYSMBA1+4		# init
22326Sbill 	movl	$1,PHYSUBA+4		# init
23*411Sbill clr:
24*411Sbill 	clrl	(r0)+
25*411Sbill 	cmpl	r0,sp
26*411Sbill 	jlss	clr
27326Sbill start:
28326Sbill 	movl	$RELOC-0x2000,sp
29326Sbill 	calls	$0,_main
30326Sbill 	jmp	start
31326Sbill 
32326Sbill __rtt:
33326Sbill 	.word	0x0
34326Sbill 	jmp	start
35