summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_pcib_acpi.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-10-11 21:10:23 +0000
committerimp <imp@FreeBSD.org>2004-10-11 21:10:23 +0000
commita5e0614f34f29e67a8b559dffa47509af8bdeb31 (patch)
tree0a29f69339ce70622c877d77602c0707b546975d /sys/dev/acpica/acpi_pcib_acpi.c
parentc21f27aa2bec2733ab051f2fe9eb43e57be2894d (diff)
downloadFreeBSD-src-a5e0614f34f29e67a8b559dffa47509af8bdeb31.zip
FreeBSD-src-a5e0614f34f29e67a8b559dffa47509af8bdeb31.tar.gz
Make the lower range of the memory area 0x80000000 again. Also
introduce hw.{pci,acpi}.host_mem_start tunable to change this. MFC: ASAP
Diffstat (limited to 'sys/dev/acpica/acpi_pcib_acpi.c')
-rw-r--r--sys/dev/acpica/acpi_pcib_acpi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
index 3077764..8ec60e7 100644
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -32,6 +32,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/module.h>
+#include <sys/sysctl.h>
#include "acpi.h"
#include <dev/acpica/acpivar.h>
@@ -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));
}
OpenPOWER on IntegriCloud