date and time created 80/06/28 10:43:11 by bill
[unix-history] / usr / src / sys / vax / stand / srt0.c
CommitLineData
3a30f6d7
BJ
1# srt0.c 1.1 %G%
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 subl3 $_edata,$RELOC-0x2000,r0
24 movc5 $0,(sp),$0,r0,_edata
25start:
26 movl $RELOC-0x2000,sp
27 calls $0,_main
28 jmp start
29
30__rtt:
31 .word 0x0
32 jmp start