aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/e820_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/e820_64.c')
-rw-r--r--arch/x86/kernel/e820_64.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/kernel/e820_64.c b/arch/x86/kernel/e820_64.c
index d6ada0833876..a720f3d5ed9d 100644
--- a/arch/x86/kernel/e820_64.c
+++ b/arch/x86/kernel/e820_64.c
@@ -36,11 +36,11 @@ struct e820map e820;
36unsigned long end_pfn; 36unsigned long end_pfn;
37 37
38/* 38/*
39 * end_pfn only includes RAM, while end_pfn_map includes all e820 entries. 39 * end_pfn only includes RAM, while max_pfn_mapped includes all e820 entries.
40 * The direct mapping extends to end_pfn_map, so that we can directly access 40 * The direct mapping extends to max_pfn_mapped, so that we can directly access
41 * apertures, ACPI and other tables without having to play with fixmaps. 41 * apertures, ACPI and other tables without having to play with fixmaps.
42 */ 42 */
43unsigned long end_pfn_map; 43unsigned long max_pfn_mapped;
44 44
45/* 45/*
46 * Last pfn which the user wants to use. 46 * Last pfn which the user wants to use.
@@ -281,16 +281,16 @@ unsigned long __init e820_end_of_ram(void)
281 281
282 end_pfn = find_max_pfn_with_active_regions(); 282 end_pfn = find_max_pfn_with_active_regions();
283 283
284 if (end_pfn > end_pfn_map) 284 if (end_pfn > max_pfn_mapped)
285 end_pfn_map = end_pfn; 285 max_pfn_mapped = end_pfn;
286 if (end_pfn_map > MAXMEM>>PAGE_SHIFT) 286 if (max_pfn_mapped > MAXMEM>>PAGE_SHIFT)
287 end_pfn_map = MAXMEM>>PAGE_SHIFT; 287 max_pfn_mapped = MAXMEM>>PAGE_SHIFT;
288 if (end_pfn > end_user_pfn) 288 if (end_pfn > end_user_pfn)
289 end_pfn = end_user_pfn; 289 end_pfn = end_user_pfn;
290 if (end_pfn > end_pfn_map) 290 if (end_pfn > max_pfn_mapped)
291 end_pfn = end_pfn_map; 291 end_pfn = max_pfn_mapped;
292 292
293 printk(KERN_INFO "end_pfn_map = %lu\n", end_pfn_map); 293 printk(KERN_INFO "max_pfn_mapped = %lu\n", max_pfn_mapped);
294 return end_pfn; 294 return end_pfn;
295} 295}
296 296
@@ -366,9 +366,9 @@ static int __init e820_find_active_region(const struct e820entry *ei,
366 if (*ei_startpfn >= *ei_endpfn) 366 if (*ei_startpfn >= *ei_endpfn)
367 return 0; 367 return 0;
368 368
369 /* Check if end_pfn_map should be updated */ 369 /* Check if max_pfn_mapped should be updated */
370 if (ei->type != E820_RAM && *ei_endpfn > end_pfn_map) 370 if (ei->type != E820_RAM && *ei_endpfn > max_pfn_mapped)
371 end_pfn_map = *ei_endpfn; 371 max_pfn_mapped = *ei_endpfn;
372 372
373 /* Skip if map is outside the node */ 373 /* Skip if map is outside the node */
374 if (ei->type != E820_RAM || *ei_endpfn <= start_pfn || 374 if (ei->type != E820_RAM || *ei_endpfn <= start_pfn ||
@@ -759,7 +759,7 @@ static int __init parse_memmap_opt(char *p)
759 saved_max_pfn = e820_end_of_ram(); 759 saved_max_pfn = e820_end_of_ram();
760 remove_all_active_ranges(); 760 remove_all_active_ranges();
761#endif 761#endif
762 end_pfn_map = 0; 762 max_pfn_mapped = 0;
763 e820.nr_map = 0; 763 e820.nr_map = 0;
764 userdef = 1; 764 userdef = 1;
765 return 0; 765 return 0;