Use entire extent region when PCIBIOS_ADDR_FIXUP is set. PCIBIOS

provides PCI-dedicated memory and io extent.
This commit is contained in:
haya 2000-06-06 08:17:37 +00:00
parent 4472dbe5e3
commit c93ef01fbf

View File

@ -1,4 +1,4 @@
/* $NetBSD: rbus_machdep.c,v 1.5 2000/06/02 08:41:13 haya Exp $ */
/* $NetBSD: rbus_machdep.c,v 1.6 2000/06/06 08:17:37 haya Exp $ */
/*
* Copyright (c) 1999
@ -147,9 +147,8 @@ rbus_pccbb_parent_mem(pa)
#endif
start = ex->ex_start;
if (start < 0x40000000) {
start = 0x40000000; /* 1GB */
}
#ifndef PCIBIOS_ADDR_FIXUP
/*
* XXX: unfortunately, iomem_ex cannot be used for the dynamic
* bus_space allocatoin. There are some hidden memory (or
@ -160,6 +159,10 @@ rbus_pccbb_parent_mem(pa)
* if defined PCIBIOS_ADDR_FIXUP, PCI device using area
* which do not recognised by the kernel are already reserved.
*/
if (start < 0x40000000) {
start = 0x40000000; /* 1GB */
}
#endif
size = ex->ex_end - start;
offset = 0;