提交 dc2adad8 编写于 作者: D Dave Liu 提交者: Jon Loeliger

86xx: Move the clear_tlbs before MMU turn on

We must invalidate TLBs before MMU turn on, but
currently the code is not, if there are some stale
TLB entry valid in the TLBs, it will cause strange
issue.
Signed-off-by: NDave Liu <daveliu@freescale.com>
Acked-by: NBecky Bruce <becky.bruce@freescale.com>
上级 b1d0db18
...@@ -202,8 +202,12 @@ boot_warm: ...@@ -202,8 +202,12 @@ boot_warm:
mtmsr 0 mtmsr 0
#endif #endif
/* Invalidate BATs */
bl invalidate_bats bl invalidate_bats
sync sync
/* Invalidate all of TLB before MMU turn on */
bl clear_tlbs
sync
#ifdef CONFIG_SYS_L2 #ifdef CONFIG_SYS_L2
/* init the L2 cache */ /* init the L2 cache */
...@@ -275,7 +279,6 @@ in_flash: ...@@ -275,7 +279,6 @@ in_flash:
/* setup the rest of the bats */ /* setup the rest of the bats */
bl setup_bats bl setup_bats
bl clear_tlbs
sync sync
#if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR) #if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册