From 831d6af0b0b4b86c706fe5d26aefe08f07cd3479 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 4 Jul 2004 16:23:25 +0000 Subject: [PATCH] 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. --- sys/dev/acpica/acpi_pcib_acpi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 8fcc300bc30c..57fc73d6023a 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)); }