summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-07-13 20:24:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-07-13 20:24:45 +0000
commit8517abda51deaeb107b28df9a28f70c25286896c (patch)
tree4d22a30dbf9ab469857dc40633871018eb95a277 /sys/arch
parentbaa445ceccbd2fecd7a4f719313ddb7b2f94e671 (diff)
Do not compile disk_reallymapin() unless it is really needed.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/vax/vax/disksubr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c
index 61d61929b12..4fabecb34f6 100644
--- a/sys/arch/vax/vax/disksubr.c
+++ b/sys/arch/vax/vax/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.53 2007/06/20 18:15:46 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.54 2007/07/13 20:24:44 miod Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */
/*
@@ -48,6 +48,8 @@
#include <vax/mscp/mscp.h> /* For disk encoding scheme */
+#include "mba.h"
+
/*
* Attempt to read a disk label from a device
* using the indicated strategy routine.
@@ -156,6 +158,7 @@ disk_printtype(int unit, int type)
printf("%d\n", MSCP_MID_NUM(type));
}
+#if NMBA > 0
/*
* Be sure that the pages we want to do DMA to is actually there
* by faking page-faults if necessary. If given a map-register address,
@@ -200,3 +203,4 @@ disk_reallymapin(struct buf *bp, pt_entry_t *map, int reg, int flag)
*(int *)io = 0;
}
}
+#endif