xref: /csrg-svn/sys/vax/stand/srt0.c (revision 411)
1 #	srt0.c	1.2	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	PHYSMBA0,0x20010000	# mba 0
13 	.set	PHYSMBA1,0x20012000	# mba 1
14 	.set	PHYSUMEM,0x2013e000	# unibus memory
15 
16 	.set	HIGH,31		# mask for total disable
17 
18 	.word	0x0
19 	mtpr	$HIGH,$IPL		# just in case
20 	movl	$1,PHYSMBA0+4		# init
21 	movl	$1,PHYSMBA1+4		# init
22 	movl	$1,PHYSUBA+4		# init
23 clr:
24 	clrl	(r0)+
25 	cmpl	r0,sp
26 	jlss	clr
27 start:
28 	movl	$RELOC-0x2000,sp
29 	calls	$0,_main
30 	jmp	start
31 
32 __rtt:
33 	.word	0x0
34 	jmp	start
35