mirror of
https://github.com/DoctorWkt/unix-jun72.git
synced 2026-04-14 07:50:43 +00:00
- get rid of dated tools.
sys1.s was needed only for assemv7. use assemv2 instead of assemv7 or assem.
This commit is contained in:
52
sys1.s
52
sys1.s
@@ -1,52 +0,0 @@
|
||||
rele = 0.
|
||||
exit = 1.
|
||||
fork = 2.
|
||||
read = 3.
|
||||
write = 4.
|
||||
open = 5.
|
||||
close = 6.
|
||||
wait = 7.
|
||||
creat = 8.
|
||||
link = 9.
|
||||
unlink = 10.
|
||||
exec = 11.
|
||||
chdir = 12.
|
||||
time = 13.
|
||||
/ mkdir = 14.
|
||||
chmod = 15.
|
||||
chown = 16.
|
||||
break = 17.
|
||||
stat = 18.
|
||||
seek = 19.
|
||||
tell = 20.
|
||||
/ mount is defined as a label in ux.s.
|
||||
/ mount = 21.
|
||||
umount = 22.
|
||||
setuid = 23.
|
||||
getuid = 24.
|
||||
stime = 25.
|
||||
quit = 26.
|
||||
intr = 27.
|
||||
fstat = 28.
|
||||
emt = 29.
|
||||
mdate = 30.
|
||||
smdate = 30.
|
||||
stty = 31.
|
||||
/gtty = 32.
|
||||
ilgins = 33.
|
||||
|
||||
/ KE11A memory map
|
||||
div = 0177300
|
||||
ac = 0177302
|
||||
mq = 0177304
|
||||
mul = 0177306
|
||||
sc = 0177310
|
||||
sr = 0177311
|
||||
nor = 0177312
|
||||
lsh = 0177314
|
||||
ash = 0177316
|
||||
|
||||
csw = 0177570
|
||||
|
||||
/ hack
|
||||
fpsym = 0
|
||||
42
tools/assem
42
tools/assem
@@ -1,42 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# assemble the sources
|
||||
#
|
||||
|
||||
# settings
|
||||
APOUT=/tmp/apout2.3alpha2/apout
|
||||
APOUT_ROOT=/tmp/s2
|
||||
COLD=1
|
||||
|
||||
export APOUT_ROOT
|
||||
|
||||
tools/rebuild
|
||||
|
||||
# fix "mount" issue which 1ed as cant deal with
|
||||
# and also fix up the vector table in u0.s since
|
||||
# the result is a slightly different format a.out that doesnt
|
||||
# include the header in the text segment
|
||||
test -d build || mkdir build
|
||||
for f in rebuilt/u?.s ; do
|
||||
b=`basename $f`
|
||||
if [ $COLD = 1 ] ; then
|
||||
sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' \
|
||||
-e 'sX\[systm-inode\]\\/2X-191.X' \
|
||||
-e 's/^mount:/_mount:/' \
|
||||
-e 's/$mount/$_mount/' \
|
||||
-e 's/cold = 0/cold = 1/' \
|
||||
< $f > build/$b
|
||||
else
|
||||
sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' \
|
||||
-e 'sX[systm-inode]\/2X-101.X' \
|
||||
-e 's/^mount:/xmount:/' \
|
||||
-e 's/$mount/$xmount/' \
|
||||
< $f > build/$b
|
||||
fi
|
||||
done
|
||||
|
||||
cd build
|
||||
$APOUT $APOUT_ROOT/bin/as ../sys1.s u?.s
|
||||
$APOUT $APOUT_ROOT/bin/nm a.out |sort > a.out.syms
|
||||
../tools/ml
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# assemble the sources
|
||||
#
|
||||
if [ ! -d tools ]
|
||||
then echo 'No tools/ directory, are you running this in the correct dir?'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# settings; should contain something like:
|
||||
# APOUT=/tmp/apout2.3alpha2/apout
|
||||
# APOUT_ROOT=/tmp/v7
|
||||
. tools/assemv7.cfg
|
||||
|
||||
export APOUT_ROOT
|
||||
|
||||
# build sources from pages and generate patched sources in "build"
|
||||
# if "cold" is passed in, the "cold" option will be patched on.
|
||||
tools/rebuild "$@"
|
||||
|
||||
# assemble the kernel from patched sources and generate symbols
|
||||
# and build a simh loadable file.
|
||||
cd build
|
||||
$APOUT $APOUT_ROOT/bin/as ../sys1.s u?.s
|
||||
$APOUT $APOUT_ROOT/bin/nm a.out |sort > a.out.syms
|
||||
../tools/ml
|
||||
|
||||
Reference in New Issue
Block a user