diff options
author | des <des@FreeBSD.org> | 2004-10-31 15:50:33 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-10-31 15:50:33 +0000 |
commit | 22d75b597a9940a02c015527c38646782f9ee3a1 (patch) | |
tree | 28e07b26ade58685bdf19420484440063653d800 /sys/amd64/pci | |
parent | 871722fc592554929f8b11fe1281250ed4096621 (diff) | |
download | FreeBSD-src-22d75b597a9940a02c015527c38646782f9ee3a1.zip FreeBSD-src-22d75b597a9940a02c015527c38646782f9ee3a1.tar.gz |
Add TUNABLE_LONG and TUNABLE_ULONG, and use the latter for the
hw.pci.host_mem_start tunable. Add comments to TUNABLE_INT and
TUNABLE_QUAD recommending against their use.
MFC after: 3 weeks
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c index a85dd19..75e118a 100644 --- a/sys/amd64/pci/pci_bus.c +++ b/sys/amd64/pci/pci_bus.c @@ -266,10 +266,9 @@ legacy_pcib_write_ivar(device_t dev, device_t child, int which, SYSCTL_DECL(_hw_pci); -static int legacy_host_mem_start = 0x80000000; -/* No TUNABLE_ULONG :-( */ -TUNABLE_INT("hw.pci.host_mem_start", &legacy_host_mem_start); -SYSCTL_INT(_hw_pci, OID_AUTO, host_mem_start, CTLFLAG_RDTUN, +static unsigned long legacy_host_mem_start = 0x80000000; +TUNABLE_ULONG("hw.pci.host_mem_start", &legacy_host_mem_start); +SYSCTL_ULONG(_hw_pci, OID_AUTO, host_mem_start, CTLFLAG_RDTUN, &legacy_host_mem_start, 0x80000000, "Limit the host bridge memory to being above this address. Must be\n\ set at boot via a tunable."); |