|
@@ -21,6 +21,7 @@
|
|
|
* Skip non-WB memory and ignore empty memory ranges.
|
|
|
*/
|
|
|
#include <linux/module.h>
|
|
|
+#include <linux/bootmem.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/types.h>
|
|
@@ -1009,6 +1010,11 @@ efi_memmap_init(unsigned long *s, unsigned long *e)
|
|
|
} else
|
|
|
ae = efi_md_end(md);
|
|
|
|
|
|
+#ifdef CONFIG_CRASH_DUMP
|
|
|
+ /* saved_max_pfn should ignore max_addr= command line arg */
|
|
|
+ if (saved_max_pfn < (ae >> PAGE_SHIFT))
|
|
|
+ saved_max_pfn = (ae >> PAGE_SHIFT);
|
|
|
+#endif
|
|
|
/* keep within max_addr= and min_addr= command line arg */
|
|
|
as = max(as, min_addr);
|
|
|
ae = min(ae, max_addr);
|