summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-07-30 21:39:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-07-30 21:39:55 +0000
commit4078b7f9881c3fd909b825e61d23f640ba90dca5 (patch)
tree19a52cdf3ce2a3f089012ccf6000d3c93e364cbe /sys/arch/sparc
parentfe9ba901e1c6eddcdc81f086b39a0601fba19162 (diff)
Make sure the BUS_SPACE_BARRIER_xxx constants are all non-zero and can be
or'ed together, even on platforms where bus_space_barrier() ignores the barrier argument yet.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/bus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/include/bus.h b/sys/arch/sparc/include/bus.h
index 5632d700755..f65f3fe3872 100644
--- a/sys/arch/sparc/include/bus.h
+++ b/sys/arch/sparc/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.8 2009/07/26 18:48:55 miod Exp $ */
+/* $OpenBSD: bus.h,v 1.9 2009/07/30 21:39:54 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
*
@@ -76,8 +76,8 @@ static int bus_space_unmap(bus_space_tag_t, bus_space_handle_t,
#define BUS_SPACE_MAP_LINEAR 0x02
#define BUS_SPACE_MAP_PREFETCHABLE 0x04
-#define BUS_SPACE_BARRIER_READ 0
-#define BUS_SPACE_BARRIER_WRITE 1
+#define BUS_SPACE_BARRIER_READ 0x01
+#define BUS_SPACE_BARRIER_WRITE 0x02
static void bus_space_barrier(bus_space_tag_t, bus_space_handle_t,
bus_addr_t, bus_size_t, int);