nommu platforms don't have very interesting swapper_pg_dir pointers and usually just #define them to NULL, meaning that we can't include them in the vmcoreinfo on the kexec crash path. This patch only saves the swapper_pg_dir if we have an MMU.
Unified · Split
| @@ -1462,7 +1462,9 @@ static int __init crash_save_vmcoreinfo_init(void) · 1461 unmodified lines | |||
| 1462 | 1462 | ||
| 1463 | VMCOREINFO_SYMBOL(init_uts_ns); | 1463 | VMCOREINFO_SYMBOL(init_uts_ns); |
| 1464 | VMCOREINFO_SYMBOL(node_online_map); | 1464 | VMCOREINFO_SYMBOL(node_online_map); |
| 1465 | #ifdef CONFIG_MMU | ||
| 1465 | VMCOREINFO_SYMBOL(swapper_pg_dir); | 1466 | VMCOREINFO_SYMBOL(swapper_pg_dir); |
| 1467 | #endif | ||
| 1466 | VMCOREINFO_SYMBOL(_stext); | 1468 | VMCOREINFO_SYMBOL(_stext); |
| 1467 | VMCOREINFO_SYMBOL(vmlist); | 1469 | VMCOREINFO_SYMBOL(vmlist); |
| 1468 | 1470 | ||