aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorHorms <horms@verge.net.au>2007-02-04 20:59:03 -0500
committerTony Luck <tony.luck@intel.com>2007-02-05 14:29:33 -0500
commit475c63bded322545d1e9ccc5930c8903d2c97c4c (patch)
treeb7f254c1b94a61283a50cefe52f571d97493a37e /arch/ia64
parentbcb9b99d1fb6a1cbe592f131dc95450d2f18c91f (diff)
[IA64] Zero size /proc/vmcore on ia64
Set saved_max_pfn when discontig memory is in use. This sets up saved_max_pfn when disctontig memory is in use. This mirrors the code for contig memory. This patch does not entirely solve the problem of making vmcore work, however it does appear to be neccessary. Please consider applying. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/mm/discontig.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c
index 96722cb1b49d..d3edb12f3cf9 100644
--- a/arch/ia64/mm/discontig.c
+++ b/arch/ia64/mm/discontig.c
@@ -506,6 +506,12 @@ void __init find_memory(void)
506 max_pfn = max_low_pfn; 506 max_pfn = max_low_pfn;
507 507
508 find_initrd(); 508 find_initrd();
509
510#ifdef CONFIG_CRASH_DUMP
511 /* If we are doing a crash dump, we still need to know the real mem
512 * size before original memory map is reset. */
513 saved_max_pfn = max_pfn;
514#endif
509} 515}
510 516
511#ifdef CONFIG_SMP 517#ifdef CONFIG_SMP