1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00

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.
This commit is contained in:
Julian Elischer 2007-10-21 04:11:13 +00:00
parent 17e45937ab
commit e1ff3d508a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172842
2 changed files with 12 additions and 2 deletions

View File

@ -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 ********************************/

View File

@ -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 ******************************/