projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add idc and remove massbus drivers for 730 (need space)
[unix-history]
/
usr
/
src
/
sys
/
vax
/
stand
/
srt0.c
diff --git
a/usr/src/sys/vax/stand/srt0.c
b/usr/src/sys/vax/stand/srt0.c
index
f3a894e
..
bcba3f7
100644
(file)
--- a/
usr/src/sys/vax/stand/srt0.c
+++ b/
usr/src/sys/vax/stand/srt0.c
@@
-1,33
+1,91
@@
-# srt0.c 4.2 %G%
+/* srt0.c 4.8 81/04/03 */
-# Startup code for standalone system
-# Non-relocating version -- for programs which are loaded by boot
+#include "../h/mtpr.h"
+#define LOCORE
+#include "../h/cpu.h"
+/*
+ * 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
.globl _main
.globl __rtt
-
- .set PHYSUBA,0x20006000 # uba 0
+ .globl _configure
+ .globl _cpu
+ .globl _openfirst
.set HIGH,31 # mask for total disable
.set HIGH,31 # mask for total disable
+entry: .globl entry
.word 0x0
mtpr $HIGH,$IPL # just in case
.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
- mov
ab _
edata,r0
+#ifdef REL
+ movl $
RELOC,sp
+#else
+ movl
$RELOC-0x2400,sp
+#endif
+start:
+ mov
l a
edata,r0
clr:
clrl (r0)+
cmpl r0,sp
jlss clr
clr:
clrl (r0)+
cmpl r0,sp
jlss clr
-start:
+#ifdef REL
+ movc3 aend,*$0,(sp)
+ jmp *abegin
+begin:
+#endif
+ mtpr $0,$SCBB
+ calls $0,_configure
+ movl $1,_openfirst
calls $0,_main
calls $0,_main
+#ifndef TP
jmp start
jmp start
+#else
+ ret
+#endif
+
+ .data
+#ifdef REL
+abegin: .long begin
+aend: .long _end-RELOC
+aedata: .long _edata-RELOC
+#else
+aedata: .long _edata
+#endif
__rtt:
.word 0x0
jmp start
__rtt:
.word 0x0
jmp start
+
+ .globl _badloc
+_badloc:
+ .word 0
+ movl $1,r0
+ movl 4(ap),r3
+ movl $4,r2
+ movab 9f,(r2)
+ tstl (r3)
+1: clrl r0 # made it w/o machine checks
+2: movl $4,r2
+ clrl (r2)
+ ret
+ .align 2
+9:
+ casel _cpu,$1,$VAX_MAX
+0:
+ .word 8f-0b # 1 is 780
+ .word 5f-0b # 2 is 750
+ .word 5f-0b # 3 is 7ZZ
+5:
+ mtpr $0xf,$MCESR
+ brb 1f
+8:
+ mtpr $0,$SBIFS
+1:
+ addl2 (sp)+,sp # discard mchchk trash
+ movab 2b,(sp)
+ rei