diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
| commit | 0006681fe6b5ffaa4658d592e020d3a0c3594147 (patch) | |
| tree | db8d42c59fad73ff2c5df7452130bc4d7ef64cc6 /sys/dev/bktr | |
| parent | b944b9033a951dd2202bb5c7d6f304d5ea09199e (diff) | |
Notes
Diffstat (limited to 'sys/dev/bktr')
| -rw-r--r-- | sys/dev/bktr/bktr_os.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/bktr/bktr_os.h b/sys/dev/bktr/bktr_os.h index 2e1ff269c409..21d3f602e38a 100644 --- a/sys/dev/bktr/bktr_os.h +++ b/sys/dev/bktr/bktr_os.h @@ -60,9 +60,15 @@ void free_bktr_mem(bktr_ptr_t, bus_dmamap_t, vm_offset_t); /* *** Interrupt Enable/Disable *** */ /************************************/ #if defined(__FreeBSD__) +#if (__FreeBSD_version >=500000) +#define DECLARE_INTR_MASK(s) critical_t s +#define DISABLE_INTR(s) s = critical_enter() +#define ENABLE_INTR(s) critical_exit(s) +#else #define DECLARE_INTR_MASK(s) intrmask_t s #define DISABLE_INTR(s) s=spltty() #define ENABLE_INTR(s) splx(s) +#endif #else #define DECLARE_INTR_MASK(s) /* no need to declare 's' */ #define DISABLE_INTR(s) disable_intr() |
