From: Bill Joy Date: Mon, 10 Nov 1980 08:26:41 +0000 (-0800) Subject: fixup to wait for UBIC other minor longterm botches (mba access, core clearing) X-Git-Tag: BSD-4^3~36 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/1a6aead80caf74c4aca615f08807888c13e48073 fixup to wait for UBIC other minor longterm botches (mba access, core clearing) SCCS-vsn: sys/vax/stand/srt0.c 1.5 --- diff --git a/usr/src/sys/vax/stand/srt0.c b/usr/src/sys/vax/stand/srt0.c index 2a68de8520..5dbbc08c6b 100644 --- a/usr/src/sys/vax/stand/srt0.c +++ b/usr/src/sys/vax/stand/srt0.c @@ -1,28 +1,30 @@ -# srt0.c 1.4 %G% +# srt0.c 1.5 %G% # Startup code for standalone system # Non-relocating version -- for programs which are loaded by boot - .globl _end + .globl _edata .globl _main .globl __rtt - .globl _edata .set PHYSUBA,0x20006000 # uba 0 - .set PHYSUMEM,0x2013e000 # unibus memory .set HIGH,31 # mask for total disable .word 0x0 mtpr $HIGH,$IPL # just in case + movl $RELOC-0x2000,sp movl $1,PHYSUBA+4 # init - movab _end,r0 +ubic: + movl *$PHYSUBA,r0 # while ((up->uba_cnfgr & UBIC) == 0) + bitl $0x10000,r0 # continue; + jeql wait + movab _edata,r0 clr: clrl (r0)+ cmpl r0,sp jlss clr start: - movl $RELOC-0x2000,sp calls $0,_main jmp start