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
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

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