README for Hurricane Distlock Software
The files in this package are routines adapted from the Hurricane kernel
to run as user processes on the Hector multiprocessor. The files are as
follows:
-
- Makefile - makes the test program
- DistLock.c - the actual Lock code from the Hurricane kernel
- distlock.c - the kernel code modified to run in user space
- Processor.h - the kernel definitions of per processor queue elements
- klock.h - the Hurricane kernel lock definitions
- distlock.h - lock definitions adapted for user space
- tst.c - the main driver program
I would like to be able to say that you can just type make and run this
package on your system, but like I said earlier, this stuff is right out of
the kernel. Consequently, it has a bunch of M88k assembler that you have to
replace with macros/functions/your own assembler. Also it uses Hurricane
specific system calls, which you have to adapt to from whatever your system
has. Even still, the code could still be useful as a template/guide as you
experiment with different lock implementations on your system.
Have fun!