summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-10-21 04:11:13 +0000
committerjulian <julian@FreeBSD.org>2007-10-21 04:11:13 +0000
commite20fc62f6c2db1279b1b1f5894ca5ff640edb42e (patch)
tree57c4677ac6efcfea3b25452dba1f5070013057e2 /sys/dev/mpt
parent50f451a2bc4a1580029f0a3ce5582d2a8fa0859d (diff)
downloadFreeBSD-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/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt.h7
1 files changed, 6 insertions, 1 deletions
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 ******************************/
OpenPOWER on IntegriCloud