From e1ff3d508a45c2cbdc87fe4fbaac656679d9b83a Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Sun, 21 Oct 2007 04:11:13 +0000 Subject: [PATCH] fix up some code for older systems changed by accident in the last commit this whole support for systems earlier than 5.0 should probably be removed but I'll at least FIX it before removing it, so that CVS has it right. --- sys/dev/aic7xxx/aic_osm_lib.h | 7 ++++++- sys/dev/mpt/mpt.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/dev/aic7xxx/aic_osm_lib.h b/sys/dev/aic7xxx/aic_osm_lib.h index b2e591c9c7a..db717f87904 100644 --- a/sys/dev/aic7xxx/aic_osm_lib.h +++ b/sys/dev/aic7xxx/aic_osm_lib.h @@ -126,11 +126,16 @@ aic_wakeup_recovery_thread(struct aic_softc *aic) /****************************** Kernel Threads ********************************/ #if __FreeBSD_version > 500005 +#if __FreeBSD_version > 800001 #define aic_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) #else #define aic_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ - kproc_create(func, farg, proc_ptr, fmtstr, arg) + kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) +#endif +#else +#define aic_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ + kthread_create(func, farg, proc_ptr, fmtstr, arg) #endif /******************************* Bus Space/DMA ********************************/ diff --git a/sys/dev/mpt/mpt.h b/sys/dev/mpt/mpt.h index a3676141278..b3f7d61a526 100644 --- a/sys/dev/mpt/mpt.h +++ b/sys/dev/mpt/mpt.h @@ -272,11 +272,16 @@ void mpt_map_rquest(void *, bus_dma_segment_t *, int, int); /**************************** Kernel Thread Support ***************************/ #if __FreeBSD_version > 500005 +#if __FreeBSD_version > 800001 #define mpt_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) #else #define mpt_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ - kproc_create(func, farg, proc_ptr, fmtstr, arg) + kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) +#endif +#else +#define mpt_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \ + kthread_create(func, farg, proc_ptr, fmtstr, arg) #endif /****************************** Timer Facilities ******************************/