X-Git-Url: https://nv-tegra.nvidia.com/r/gitweb?p=linux-2.6.git;a=blobdiff_plain;f=arch%2Fx86_64%2Fkernel%2Fsetup.c;h=57f619052badd62e28b29e0ed0bef1bfa49ba7ed;hp=b06221e31952ac310109e14d6edaf77630d60708;hb=a1e9778203b15b86bc2219e87478d3be9acce735;hpb=cf94b62f7005805be0a3ba02c624cb8cd3595bac diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index b06221e3195..57f619052ba 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -76,9 +76,6 @@ int __initdata acpi_force = 0; int acpi_numa __initdata; -/* For PCI or other memory-mapped resources */ -unsigned long pci_mem_start = 0x10000000; - /* Boot loader ID as an integer, for the benefit of proc_dointvec */ int bootloader_type; @@ -495,7 +492,6 @@ static void __init reserve_ebda_region(void) void __init setup_arch(char **cmdline_p) { - unsigned long low_mem_size; unsigned long kernel_end; ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); @@ -654,13 +650,7 @@ void __init setup_arch(char **cmdline_p) request_resource(&ioport_resource, &standard_io_resources[i]); } - /* Will likely break when you have unassigned resources with more - than 4GB memory and bridges that don't support more than 4GB. - Doing it properly would require to use pci_alloc_consistent - in this case. */ - low_mem_size = ((end_pfn << PAGE_SHIFT) + 0xfffff) & ~0xfffff; - if (low_mem_size > pci_mem_start) - pci_mem_start = low_mem_size; + e820_setup_gap(); #ifdef CONFIG_GART_IOMMU iommu_hole_init();