diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-16 22:58:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 04:38:25 -0400 |
commit | 064d25f12014ae1d97c2882f9ab874995321f2b2 (patch) | |
tree | a6f39b226bbae5a2abc15d911cdf12d01b9c8c19 /arch/x86/mm/init_64.c | |
parent | cc9f7a0ccf000d4db5fbdc7b0ae48eefea102f69 (diff) |
x86: merge setup_memory_map with e820
... and kill e820_32/64.c and e820_32/64.h
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r-- | arch/x86/mm/init_64.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index b8c2c1ef7ad5..5266f3141d6c 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -47,6 +47,18 @@ | |||
47 | #include <asm/numa.h> | 47 | #include <asm/numa.h> |
48 | #include <asm/cacheflush.h> | 48 | #include <asm/cacheflush.h> |
49 | 49 | ||
50 | /* | ||
51 | * PFN of last memory page. | ||
52 | */ | ||
53 | unsigned long end_pfn; | ||
54 | |||
55 | /* | ||
56 | * end_pfn only includes RAM, while max_pfn_mapped includes all e820 entries. | ||
57 | * The direct mapping extends to max_pfn_mapped, so that we can directly access | ||
58 | * apertures, ACPI and other tables without having to play with fixmaps. | ||
59 | */ | ||
60 | unsigned long max_pfn_mapped; | ||
61 | |||
50 | static unsigned long dma_reserve __initdata; | 62 | static unsigned long dma_reserve __initdata; |
51 | 63 | ||
52 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 64 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |