summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-09-28 15:58:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-09-28 15:58:31 +0000
commit82d4fe23103a44e47cc886edcd6577d98c9afd55 (patch)
tree287ff4403503149c89f4b2eb4ff747a1cef7b18c /sys/arch/amd64
parent0eb48b960f19715a24585e16041ccad3366fc643 (diff)
Make video buffer area and BIOS areas unavailable for PCI resource allocation.
This should prevent problems on systems where these areas are not reserved in the BIOS memory map. ok miod@, oga@, marco@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/pci/pci_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c
index 554c6e9d72d..265d4dfdbe3 100644
--- a/sys/arch/amd64/pci/pci_machdep.c
+++ b/sys/arch/amd64/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.31 2009/08/22 02:54:50 mk Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.32 2009/09/28 15:58:30 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
/*-
@@ -412,5 +412,9 @@ pci_init_extents(void)
printf("memory map conflict 0x%llx/0x%llx\n",
bmp->addr, bmp->size);
}
+
+ /* Take out the video buffer area and BIOS areas. */
+ extent_alloc_region(pcimem_ex, IOM_BEGIN, IOM_SIZE,
+ EX_CONFLICTOK | EX_NOWAIT);
}
}