From 5e3b4d5e06e6df9b809f3543419ea2589ea8d692 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 14 Oct 2004 23:52:21 +0000 Subject: MFC 1.42: hw.acpi.host_start_mem and revert back to old default. Approved by: re@ (scottl) --- sys/dev/acpica/acpi_pcib_acpi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 26632e4ddfd4..90371733b31f 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "acpi.h" #include @@ -300,6 +301,9 @@ acpi_pcib_acpi_route_interrupt(device_t pcib, device_t dev, int pin) return (acpi_pcib_route_interrupt(pcib, dev, pin)); } +static int acpi_host_mem_start = 0x80000000; +TUNABLE_INT("hw.acpi.host_mem_start", &acpi_host_mem_start); + struct resource * 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) @@ -314,7 +318,7 @@ acpi_pcib_acpi_alloc_resource(device_t dev, device_t child, int type, int *rid, * is liekly OK. */ if (type == SYS_RES_MEMORY && start == 0UL && end == ~0UL) - start = 0xfe000000; + start = acpi_host_mem_start; return (bus_generic_alloc_resource(dev, child, type, rid, start, end, count, flags)); } -- cgit v1.3