projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79fcf52
)
xtensa: initialize CPENABLE SR when core has one
author
Max Filippov
<
[email protected]
>
Mon, 10 Dec 2012 21:26:23 +0000
(
01:26
+0400)
committer
Chris Zankel
<
[email protected]
>
Wed, 19 Dec 2012 05:10:25 +0000
(21:10 -0800)
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: Max Filippov <
[email protected]
>
Signed-off-by: Chris Zankel <
[email protected]
>
arch/xtensa/kernel/head.S
patch
|
blob
|
history
diff --git
a/arch/xtensa/kernel/head.S
b/arch/xtensa/kernel/head.S
index 0cd337a341d96366e3fa36453850ab5bdb8333b4..91d9095284dee76104b1be0b2e8ecc129885e32f 100644
(file)
--- a/
arch/xtensa/kernel/head.S
+++ b/
arch/xtensa/kernel/head.S
@@
-124,7
+124,7
@@
ENTRY(_startup)
/* Disable coprocessors. */
-#if XCHAL_
CP_NUM > 0
+#if XCHAL_
HAVE_CP
wsr a0, cpenable
#endif