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.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -1462,7 +1462,9 @@ static int __init crash_save_vmcoreinfo_init(void) · 1461 unmodified lines | ||
| 1462 | 1462 | |
| 1463 | 1463 | VMCOREINFO_SYMBOL(init_uts_ns); |
| 1464 | 1464 | VMCOREINFO_SYMBOL(node_online_map); |
| 1465 | +#ifdef CONFIG_MMU | |
| 1465 | 1466 | VMCOREINFO_SYMBOL(swapper_pg_dir); |
| 1467 | +#endif | |
| 1466 | 1468 | VMCOREINFO_SYMBOL(_stext); |
| 1467 | 1469 | VMCOREINFO_SYMBOL(vmlist); |
| 1468 | 1470 | |