summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/xbow/xbridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c
index 804ac7fd6ce..de9a7da1dd3 100644
--- a/sys/arch/sgi/xbow/xbridge.c
+++ b/sys/arch/sgi/xbow/xbridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbridge.c,v 1.27 2009/06/21 18:03:16 miod Exp $ */
+/* $OpenBSD: xbridge.c,v 1.28 2009/06/27 16:34:50 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -1905,7 +1905,8 @@ xbridge_resource_manage(struct xbridge_softc *sc, pcitag_t tag,
*/
break;
case PCI_MAPREG_TYPE_IO:
- if (base != 0) {
+ if (base != 0 && base >= ioex->ex_start &&
+ base + size - 1 <= ioex->ex_end) {
if (extent_alloc_region(ioex, base, size,
EX_NOWAIT))
printf("io address conflict"