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

xtensa: initialize CPENABLE SR when core has one

XCHAL_CP_NUM is defined in variant/tie.h and it is not included by
head.S, leaving CPENABLE register uninitialised. XCHAL_HAVE_CP is
defined in variant/core.h to 1 when core has CPENABLE SR.
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NChris Zankel <chris@zankel.net>
上级 79fcf52b
...@@ -124,7 +124,7 @@ ENTRY(_startup) ...@@ -124,7 +124,7 @@ ENTRY(_startup)
/* Disable coprocessors. */ /* Disable coprocessors. */
#if XCHAL_CP_NUM > 0 #if XCHAL_HAVE_CP
wsr a0, cpenable wsr a0, cpenable
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册