To install mz, create directory /etc/conf/mz, then directory
/etc/conf/mz/src.  Copy files Makefile and mz.c into /etc/conf/mz/src.

Copy file file man/mz into directory /usr/man/COHERENT.2

Copy file "mzioctl.h" into directory /usr/include/sys.

Edit file /usr/include/sys/devices.h; replace the entry for major number 29
with the following:

#define MZ_MAJOR	29

Note that if device 29 is already used, replace "29" with a number that is
not in use.

Add the following line to file /etc/conf/sdevice:

mz	Y	0	0	0	0	0x0	0x0	0x0	0x0

Add the following line to file /etc/conf/mdevice:

mz	-	CGo	mz	29	29	0	255	-1	-1

Note that you are giving "mz" a major-device number other than 29, replace
"29" in the above line with the number that you have assigned to "mz".

Add the following line to file /usr/man/man.index:

COHERENT.2/mz.doc	mz	Device driver to monitor system memory

Note that there is exactly one tab character between fields.  This is
important!

Now, cd to /etc/conf and execute command "bin/idmkcoh -o /coh.test".
You may wish to change the name of the kernel if you are already using
a kernel named "coh.test".

Reboot.  When you are prompted to press the space bar to stop booting,
do so.  At the `?' prompt, type "coh.test" (or the name you gave the
kernel if coh.test was already being used).

When you have booted the new kernel, execute the following command:

/etc/mknod /dev/memquery c 29 0

This creates the device for this driver.  Note that if you changed the
major-device number of "mz", change the "29" in this command to the
number that you have given to "mz".

And that's all.
