aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bktr
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-12-18 00:27:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-12-18 00:27:18 +0000
commit7e1f6dfe9d7ac65419d57b36dee19cd1a3e996f5 (patch)
treebd1f842c61588e8478e798dece6dff8b2be41310 /sys/dev/bktr
parent59f2fc2ca4bb8915d36d16365bc129a31fec0219 (diff)
Notes
Diffstat (limited to 'sys/dev/bktr')
-rw-r--r--sys/dev/bktr/bktr_os.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bktr/bktr_os.h b/sys/dev/bktr/bktr_os.h
index 21d3f602e38ab..174072321c416 100644
--- a/sys/dev/bktr/bktr_os.h
+++ b/sys/dev/bktr/bktr_os.h
@@ -61,9 +61,9 @@ void free_bktr_mem(bktr_ptr_t, bus_dmamap_t, vm_offset_t);
/************************************/
#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)
+#define DECLARE_INTR_MASK(s) /* no need to declare 's' */
+#define DISABLE_INTR(s) critical_enter()
+#define ENABLE_INTR(s) critical_exit()
#else
#define DECLARE_INTR_MASK(s) intrmask_t s
#define DISABLE_INTR(s) s=spltty()