Skip to content

Commit

Permalink
xtensa: initialize CPENABLE SR when core has one
Browse files Browse the repository at this point in the history
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 <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent 79fcf52 commit eab5e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ ENTRY(_startup)

/* Disable coprocessors. */

#if XCHAL_CP_NUM > 0
#if XCHAL_HAVE_CP
wsr a0, cpenable
#endif

Expand Down

0 comments on commit eab5e7a

Please sign in to comment.