提交 6c188829 编写于 作者: K Kumar Gala 提交者: Benjamin Herrenschmidt

powerpc/book3e-64: Wait til generic_calibrate_decr to enable decrementer

Match what we do on 32-bit Book-E processors and enable the decrementer
in generic_calibrate_decr.  We need to make sure we disable the
decrementer early in boot since we currently use lazy (soft) interrupt
on 64-bit Book-E and possible get a decrementer exception before we
are ready for it.
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 f45c4486
...@@ -774,9 +774,11 @@ _STATIC(init_thread_book3e) ...@@ -774,9 +774,11 @@ _STATIC(init_thread_book3e)
/* Make sure interrupts are off */ /* Make sure interrupts are off */
wrteei 0 wrteei 0
/* disable watchdog and FIT and enable DEC interrupts */ /* disable all timers and clear out status */
lis r3,TCR_DIE@h li r3,0
mtspr SPRN_TCR,r3 mtspr SPRN_TCR,r3
mfspr r3,SPRN_TSR
mtspr SPRN_TSR,r3
blr blr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册