History

kexec: crash: don't save swapper_pg_dir for !CONFIG_MMU configurations

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.

Will Deacon committed 14 years ago

Commit d034cfa1 parent 7d7f9841 file · +2 −0Browse files

Unified · Split

kernel/kexec.c+2−0
@@ -1462,7 +1462,9 @@ static int __init crash_save_vmcoreinfo_init(void) · 1461 unmodified lines
14621462
14631463 VMCOREINFO_SYMBOL(init_uts_ns);
14641464 VMCOREINFO_SYMBOL(node_online_map);
1465+#ifdef CONFIG_MMU
14651466 VMCOREINFO_SYMBOL(swapper_pg_dir);
1467+#endif
14661468 VMCOREINFO_SYMBOL(_stext);
14671469 VMCOREINFO_SYMBOL(vmlist);
14681470

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t