ramips: fix devicetree corruption with some boot loaders if the caches are not ready at boot
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46766
This commit is contained in:
parent
2416e506f5
commit
7747092ed1
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
--- a/arch/mips/kernel/setup.c
|
||||
+++ b/arch/mips/kernel/setup.c
|
||||
@@ -675,7 +675,6 @@
|
||||
crashk_res.end - crashk_res.start + 1,
|
||||
BOOTMEM_DEFAULT);
|
||||
#endif
|
||||
- device_tree_init();
|
||||
sparse_init();
|
||||
plat_swiotlb_setup();
|
||||
paging_init();
|
||||
@@ -784,6 +783,7 @@
|
||||
prefill_possible_map();
|
||||
|
||||
cpu_cache_init();
|
||||
+ device_tree_init();
|
||||
}
|
||||
|
||||
unsigned long kernelsp[NR_CPUS];
|
Loading…
Reference in a new issue