提交 79fcf52b 编写于 作者: M Max Filippov 提交者: Chris Zankel

xtensa: reset all timers on initialization

There are XCHAL_NUM_TIMERS, reset them all.
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NChris Zankel <chris@zankel.net>
上级 90e3bc79
...@@ -111,7 +111,7 @@ ENTRY(_startup) ...@@ -111,7 +111,7 @@ ENTRY(_startup)
/* Disable all timers. */ /* Disable all timers. */
.set _index, 0 .set _index, 0
.rept XCHAL_NUM_TIMERS - 1 .rept XCHAL_NUM_TIMERS
wsr a0, SREG_CCOMPARE + _index wsr a0, SREG_CCOMPARE + _index
.set _index, _index + 1 .set _index, _index + 1
.endr .endr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册