Instructions for installing the sysupd2 kit:

1. Unpack the sysupd2 archive to an empty directory of your choice:
	cd <yourdir>; uncompress -cd sysupd2.tar.Z | tar x -
   You should now have a set of directories (mm,kernel,include,lib,commands)
   as well as some files.

2. For safety reasons: keep a copy of your original minix sources somewhere!

3. Apply the *.cdif-files in each subdirectory of this kit to the appropriate
   files in the minix source directories. Copy all other files from the sub-
   directories to the minix source dirs.
   NOTE: the file commands/ccf.c.cdif is optional; in addition to the "-p"
   option it installs "-f" for compiling with floating point (assuming you
   have a float kit for ack c). You may apply this one to cc.c instead of
   cc.c.cdif.

4. copy include/gmon.h, include/minix/callnr.h and include/minix/com.h to your
   include file directories (normally /usr/include and /usr/include/minix)

5. Compile lib/other/syslib.c and replace it in /usr/lib/libc.a. Compile the
   other new files from lib/other (monitor.c,nice.c,profil.c) and add them
   to libc.a.

6. Compile lib/atari/crtso.s by
	cc -c crtso.s -DACK -D_MCRTSO
   and move the resulting crtso.o to /usr/lib/mcrtso.o (*note* *m*crtso !).
   BTW, monitor expects a global symbol _start to be defined as the start
   of the text segment. This is automatically exported by this crtso version
   (independent from -D_MCRTSO), hence it would be convenient to compile it
   as standard crtso.o too if one would like to be able to call monitor()
   from within programs not linked with -p (f.e. the 2nd test in 11. below).

7. Compile kernel and mm (fs is not affected) and build a new minix.img

8. Boot the new minix image. Run the tests in the test directory to check it

9. Compile cc.c and nice.c and install them in /bin or /usr/bin

10. cd gprof and make it. Note that gprof needs floating point for its work.
    There are float kits available for pc and 68k ack c compiler. See your
    favorite archive if you don't have one of these.
    Install the result (gprof) in some binary directory.

The rest of the instructions are tests for profil() and nice():

11. compile testmon.c and test the profiling code:
	1. cc -p -o testmon -O testmon.c
    or	2. cc -o testmon -O testmon.c -DNOSTART
    Test both versions by calling
	testmon
	gprof testmon gmon.out

12. Just to demonstrate the new scheduling mechanism:
    make a c program hog.c:
	main() { while(1) ; }
    compile that and start it in the background:
	cc -o hog hog.c
	nice hog & nice hog & nice hog &
    now start your editor and edit some file; watch the interactive reaction.
    kill the hogs and start them again without niceing them:
	hog & hog & hog &
    start your editor again and watch. Reactions should be noticably slower then
    before, but still *much* better as the original 1.5 kernel.
