diff options
author | julian <julian@FreeBSD.org> | 2007-10-21 04:11:13 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-10-21 04:11:13 +0000 |
commit | e20fc62f6c2db1279b1b1f5894ca5ff640edb42e (patch) | |
tree | 57c4677ac6efcfea3b25452dba1f5070013057e2 /sys | |
parent | 50f451a2bc4a1580029f0a3ce5582d2a8fa0859d (diff) | |
download | FreeBSD-src-e20fc62f6c2db1279b1b1f5894ca5ff640edb42e.zip FreeBSD-src-e20fc62f6c2db1279b1b1f5894ca5ff640edb42e.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/aic7xxx/aic_osm_lib.h | 7 | ||||
-rw-r--r-- | 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 b2e591c..db717f8 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 a367614..b3f7d61 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 ******************************/ |