Andrew,
http://www.netbsd.org/~ad/rwlock.diff This diff does the following:
[...]
Comments?
Stupid as it may seem, it doesn't compile on a UP kernel. In line 356 of the new kern_rwlock.c there is a call to 'mutex_onproc' outside a #define MULTIPROCESSOR ... #endif block.
Vincent