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