summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-07-04 16:23:25 +0000
committerimp <imp@FreeBSD.org>2004-07-04 16:23:25 +0000
commit631556e5b2515d2cefb9a4114abe732c86d21a09 (patch)
tree5608d62e3e194ac5706795ebb4a58c48965deee8 /sys/dev/acpica
parentee5f93f56a2ef4f350b2806d8129fb2b520a0e4d (diff)
downloadFreeBSD-src-631556e5b2515d2cefb9a4114abe732c86d21a09.zip
FreeBSD-src-631556e5b2515d2cefb9a4114abe732c86d21a09.tar.gz
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.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_pcib_acpi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
index 8fcc300..57fc73d 100644
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -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));
}
OpenPOWER on IntegriCloud