Make the default memory range in the top 2GB of ram in the hopes that

this more accurately reflects what the underlying hardware of most
acpi machines that don't have children pci busses.

We still need a better way to get this information from acpi/hardware.
This commit is contained in:
Warner Losh 2004-07-04 16:23:25 +00:00
parent 2af417add4
commit dfbaec0a6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131577

View File

@ -309,14 +309,16 @@ acpi_pcib_acpi_alloc_resource(device_t dev, device_t child, int type, int *rid,
u_long start, u_long end, u_long count, u_int flags)
{
/*
* If no memory preference is given, use upper 256MB slot most
* If no memory preference is given, use upper 2GB slot most
* bioses use for their memory window. Typically other bridges
* before us get in the way to assert their preferences on memory.
* Hardcoding like this sucks, so a more MD/MI way needs to be
* found to do it.
* found to do it. This is typically only used on older laptops
* that don't have pci busses behind pci bridge, so assuming < 2GB
* is liekly OK.
*/
if (type == SYS_RES_MEMORY && start == 0UL && end == ~0UL)
start = 0xf0000000;
start = 0x80000000;
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
count, flags));
}