diff options
author | peter <peter@FreeBSD.org> | 1998-12-28 16:28:24 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-12-28 16:28:24 +0000 |
commit | 9a3d9ee577a3eec80188f6c61bfff9dc7d32e9e2 (patch) | |
tree | b01101042b9231af62aa21c6bdee24e0419bddae /sys/dev/vinum/vinuminterrupt.c | |
parent | b44d350f5dbecc328917a46469163854cf764dd0 (diff) | |
download | FreeBSD-src-9a3d9ee577a3eec80188f6c61bfff9dc7d32e9e2.zip FreeBSD-src-9a3d9ee577a3eec80188f6c61bfff9dc7d32e9e2.tar.gz |
Some relatively minor tweaks to enable vinum to be built into a static
kernel as a pseudo-device. The changes were:
- #ifdef DEBUG -> #ifdef VINUMDEBUG
- opt_vinum.h for holding above config variable
- Fixing up a few stray problems where DEBUG wasn't optional.
- config.c -> vinumconfig.c (there's already a config.o)
- Other *.c -> vinum*.c (wasn't strictly necessary, but done in case we end
up with something else conflicting later on and we might have to have yet
more repository copies of files).
- include file paths fixups.. (ie: get them all from the kernel tree
instead of partly from the kernel and partly from /usr/include/machine)
I've spoken with Greg about this.. I hope this doesn't mess him around
too much..
Diffstat (limited to 'sys/dev/vinum/vinuminterrupt.c')
-rw-r--r-- | sys/dev/vinum/vinuminterrupt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinuminterrupt.c b/sys/dev/vinum/vinuminterrupt.c index b97ec3e..5f11e18 100644 --- a/sys/dev/vinum/vinuminterrupt.c +++ b/sys/dev/vinum/vinuminterrupt.c @@ -35,12 +35,13 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: interrupt.c,v 1.3 1998/11/03 06:37:57 grog Exp $ + * $Id: interrupt.c,v 1.5 1998/12/28 04:56:23 peter Exp $ */ #define REALLYKERNEL -#include "vinumhdr.h" -#include "request.h" +#include "opt_vinum.h" +#include <dev/vinum/vinumhdr.h> +#include <dev/vinum/request.h> #include <miscfs/specfs/specdev.h> #include <sys/resourcevar.h> @@ -71,7 +72,7 @@ complete_rqe(struct buf *bp) rq = rqg->rq; /* and the complete request */ ubp = rq->bp; /* user buffer */ -#ifdef DEBUG +#ifdef VINUMDEBUG if (debug & DEBUG_LASTREQS) logrq(loginfo_iodone, rqe, ubp); #endif @@ -107,7 +108,7 @@ complete_rqe(struct buf *bp) if (rqg->active == 0) /* request group finished, */ rq->active--; /* one less */ if (rq->active == 0) { /* request finished, */ -#if DEBUG +#if VINUMDEBUG if (debug & DEBUG_RESID) { if (ubp->b_resid != 0) /* still something to transfer? */ Debugger("resid"); |