summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-10-16 14:07:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-10-16 14:07:32 +0000
commit3f1e5768eb5c6a694481de466bb6e2e23353127e (patch)
tree7674f69bf9d733d9d88ff84a467f64e23256fcdd /sys
parent5dc3bb8a43bd2aee3934d1ce4026609d983c547e (diff)
Make Octane kernels compile again after recent changes. My bad.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/xbow/xbridge.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c
index 0b4e4627ac3..b31bf4378c1 100644
--- a/sys/arch/sgi/xbow/xbridge.c
+++ b/sys/arch/sgi/xbow/xbridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbridge.c,v 1.52 2009/10/15 23:40:49 miod Exp $ */
+/* $OpenBSD: xbridge.c,v 1.53 2009/10/16 14:07:31 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -1266,7 +1266,9 @@ int
xbridge_space_map_mem(bus_space_tag_t t, bus_addr_t offs, bus_size_t size,
int flags, bus_space_handle_t *bshp)
{
+#if defined(TGT_ORIGIN200) || defined(TGT_ORIGIN2000) || defined(DIAGNOSTIC)
struct xbridge_bus *xb = (struct xbridge_bus *)t->bus_private;
+#endif
/*
* Base address is either within the devio area, or our direct
@@ -1366,8 +1368,10 @@ int
xbridge_space_region_mem(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp)
{
+#if defined(TGT_ORIGIN200) || defined(TGT_ORIGIN2000) || defined(DIAGNOSTIC)
struct xbridge_bus *xb = (struct xbridge_bus *)t->bus_private;
bus_addr_t bpa;
+#endif
/*
* Base address is either within the devio area, or our direct