提交 6bf7bd69 编写于 作者: R Russell King 提交者: Russell King

[ARM] Fix mm initialisation with write buffered write allocate caches

It seems that without the extra tlb flush, we may end up faulting
during the early kernel initialisation because the TLB can't see
the updated page tables.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 bfca9459
...@@ -486,10 +486,17 @@ static void __init devicemaps_init(struct machine_desc *mdesc) ...@@ -486,10 +486,17 @@ static void __init devicemaps_init(struct machine_desc *mdesc)
/* /*
* Ask the machine support to map in the statically mapped devices. * Ask the machine support to map in the statically mapped devices.
* After this point, we can start to touch devices again.
*/ */
if (mdesc->map_io) if (mdesc->map_io)
mdesc->map_io(); mdesc->map_io();
/*
* Finally flush the tlb again - this ensures that we're in a
* consistent state wrt the writebuffer if the writebuffer needs
* draining. After this point, we can start to touch devices
* again.
*/
local_flush_tlb_all();
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册