Date: Tue, 8 Jan 2008 23:18:44 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132831 for review Message-ID: <200801082318.m08NIiKg053348@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132831 Change 132831 by hselasky@hselasky_laptop001 on 2008/01/08 23:18:29 Compile fix for FreeBSD 6.3. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_port.h#23 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_port.h#23 (text+ko) ==== @@ -110,7 +110,7 @@ #define SCSI_MODE_SENSE MODE_SENSE #define usb_thread_create kthread_create1 -#define usb_thread_exit(err) kthread_exit(err) +#define usb_thread_exit(err) kthread_exit(err) #if (__NetBSD_Version__ >= 300000000) typedef void *usb_malloc_type; @@ -170,7 +170,7 @@ #endif #define usb_thread_create kthread_create -#define usb_thread_exit(err) kthread_exit(err) +#define usb_thread_exit(err) kthread_exit(err) typedef int usb_malloc_type; @@ -197,11 +197,13 @@ #if (__FreeBSD_version >= 700000) #define usb_thread_create(f, s, p, ...) \ kproc_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__) -#define usb_thread_exit(err) kproc_exit(err) +#define usb_thread_exit(err) kproc_exit(err) #else #define usb_thread_create(f, s, p, ...) \ kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__) -#define usb_thread_exit(err) kthread_exit(err) +#define usb_thread_exit(err) kthread_exit(err) +#define thread_lock(td) mtx_lock_spin(&sched_lock) +#define thread_unlock(td) mtx_unlock_spin(&sched_lock) #endif #define clalloc(p, s, x) (clist_alloc_cblocks((p), (s), (s)), 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801082318.m08NIiKg053348>