diff --git a/tools/assem b/tools/assem index e72d2c9..3c1c509 100755 --- a/tools/assem +++ b/tools/assem @@ -6,6 +6,7 @@ # settings APOUT=/tmp/apout2.3alpha2/apout APOUT_ROOT=/tmp/s2 +COLD=1 export APOUT_ROOT @@ -18,10 +19,19 @@ tools/rebuild test -d build || mkdir build for f in rebuilt/u?.s ; do b=`basename $f` - sed -e 's/mount/xmount/g' \ - -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' < $f > build/$b + if [ $COLD = 1 ] ; then + sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' \ + -e 's/mount/xmount/' \ + -e 's/gtty/xgtty/' \ + -e 's/cold = 0/cold = 1/' < $f > build/$b + else + sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' \ + -e 's/mount/xmount/' < $f > build/$b + fi done cd build -$APOUT $APOUT_ROOT/bin/as - u?.s +$APOUT $APOUT_ROOT/bin/as ../sys1.s u?.s +$APOUT $APOUT_ROOT/bin/nm a.out |sort > a.out.syms +../tools/ml