diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/setup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index d88ebdfa6ccd..8d58a053e12e 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -59,6 +59,9 @@ | |||
59 | #include "setup_arch_pre.h" | 59 | #include "setup_arch_pre.h" |
60 | #include <bios_ebda.h> | 60 | #include <bios_ebda.h> |
61 | 61 | ||
62 | /* Forward Declaration. */ | ||
63 | void __init find_max_pfn(void); | ||
64 | |||
62 | /* This value is set up by the early boot code to point to the value | 65 | /* This value is set up by the early boot code to point to the value |
63 | immediately after the boot time page tables. It contains a *physical* | 66 | immediately after the boot time page tables. It contains a *physical* |
64 | address, and must not be in the .bss segment! */ | 67 | address, and must not be in the .bss segment! */ |
@@ -736,6 +739,15 @@ static void __init parse_cmdline_early (char ** cmdline_p) | |||
736 | if (to != command_line) | 739 | if (to != command_line) |
737 | to--; | 740 | to--; |
738 | if (!memcmp(from+7, "exactmap", 8)) { | 741 | if (!memcmp(from+7, "exactmap", 8)) { |
742 | #ifdef CONFIG_CRASH_DUMP | ||
743 | /* If we are doing a crash dump, we | ||
744 | * still need to know the real mem | ||
745 | * size before original memory map is | ||
746 | * reset. | ||
747 | */ | ||
748 | find_max_pfn(); | ||
749 | saved_max_pfn = max_pfn; | ||
750 | #endif | ||
739 | from += 8+7; | 751 | from += 8+7; |
740 | e820.nr_map = 0; | 752 | e820.nr_map = 0; |
741 | userdef = 1; | 753 | userdef = 1; |