BSD 4 release
[unix-history] / usr / src / sys / stand / tpsrt0.s
# tpsrt0.s 4.4 11/11/80
# Startup code for standalone system
# Non-relocating version -- for programs which are loaded by boot
.globl _edata
.globl _end
.globl _main
.globl __rtt
.set PHYSUBA,0x20006000 # uba 0
.set HIGH,31 # mask for total disable
.word 0x0
mtpr $HIGH,$IPL # just in case
movl $RELOC-0x2000,sp
movl $1,PHYSUBA+4 # init
ubic:
movl *$PHYSUBA,r0 # while ((up->uba_cnfgr & UBIC) == 0)
bitl $0x10000,r0 # continue;
jeql ubic
movab _edata,r0
movab _end,r1
clr:
clrl (r0)+
cmpl r0,r1
jlss clr
start:
calls $0,_main
ret
__rtt:
.word 0x0
jmp start