BSD 4 release
[unix-history] / usr / src / sys / stand / srt0.s
CommitLineData
f86463af
BJ
1# srt0.s 4.2 11/9/80
2
3# Startup code for standalone system
4# Non-relocating version -- for programs which are loaded by boot
5
6 .globl _edata
7 .globl _main
8 .globl __rtt
9
10 .set PHYSUBA,0x20006000 # uba 0
11
12 .set HIGH,31 # mask for total disable
13
14 .word 0x0
15 mtpr $HIGH,$IPL # just in case
16 movl $RELOC-0x2000,sp
17 movl $1,PHYSUBA+4 # init
18ubic:
19 movl *$PHYSUBA,r0 # while ((up->uba_cnfgr & UBIC) == 0)
20 bitl $0x10000,r0 # continue;
21 jeql ubic
22 movab _edata,r0
23clr:
24 clrl (r0)+
25 cmpl r0,sp
26 jlss clr
27start:
28 calls $0,_main
29 jmp start
30
31__rtt:
32 .word 0x0
33 jmp start