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
move dev routines into ../stand/dev.c
[unix-history]
/
usr
/
src
/
sys
/
tahoe
/
stand
/
srt0.c
diff --git
a/usr/src/sys/tahoe/stand/srt0.c
b/usr/src/sys/tahoe/stand/srt0.c
index
7c5dbe3
..
def3f7d
100644
(file)
--- a/
usr/src/sys/tahoe/stand/srt0.c
+++ b/
usr/src/sys/tahoe/stand/srt0.c
@@
-1,4
+1,4
@@
-/* srt0.c 1.
4 86/12/19
*/
+/* srt0.c 1.
6 87/04/02
*/
#include "../machine/mtpr.h"
#define LOCORE
#include "../machine/mtpr.h"
#define LOCORE
@@
-12,6
+12,8
@@
.globl __rtt
.globl _openfirst
.globl _start
.globl __rtt
.globl _openfirst
.globl _start
+ .globl _boothowto
+ .globl _bootdev
.set HIGH,31 # mask for total disable
.set HIGH,31 # mask for total disable
@@
-31,7
+33,7
@@
_start:
movl $RELOC,r0 /* source address to copy from */
movl $BOOTRELOC,r1 /* destination address */
movl $RELOC,r0 /* source address to copy from */
movl $BOOTRELOC,r1 /* destination address */
- movl
aedata,r2
/* length to copy */
+ movl
tdlen,r2
/* length to copy */
addl2 r2,r0
addl2 r2,r1
mvloop:
addl2 r2,r0
addl2 r2,r1
mvloop:
@@
-44,21
+46,23
@@
mvloop:
/*
* zero bss
*/
/*
* zero bss
*/
- mov
ab _edata,r1
/* destination address */
- subl3
aend,aedata,r2
/* length to zero */
+ mov
l aedata,r1
/* destination address */
+ subl3
$_edata,$_end,r2
/* length to zero */
zloop:
movb $0,(r1)
incl r1
decl r2
bgeq zloop
zloop:
movb $0,(r1)
incl r1
decl r2
bgeq zloop
- mtpr $
0
,$PACC
- mtpr $
0
,$PADC
+ mtpr $
1
,$PACC
+ mtpr $
1
,$PADC
jmp *abegin
#endif
begin:
movl fp,ofp
jmp *abegin
#endif
begin:
movl fp,ofp
+ movl r11,_boothowto
+ movl r10,_bootdev
movl $1,_openfirst
callf $4,_main
#ifdef REL
movl $1,_openfirst
callf $4,_main
#ifdef REL
@@
-77,10
+81,9
@@
__rtt:
.data
abegin: .long begin
#ifdef REL
.data
abegin: .long begin
#ifdef REL
-aend: .long _end-BOOTRELOC
-aedata: .long _edata-BOOTRELOC
-#else
-aend: .long _end-RELOC
-aedata: .long _edata-RELOC
+aedata: .long _edata
+tdlen: .long _edata-BOOTRELOC
#endif
ofp: .long 0
#endif
ofp: .long 0
+_boothowto: .long 0
+_bootdev: .long 0