Skip to content

Commit

Permalink
xtensa: add missing XCHAL_HAVE_WINDOWED check
Browse files Browse the repository at this point in the history
Add missing preprocessor conditions to secondary reset vector code.

Fixes: 09af39f ("xtensa: use register window specific opcodes only when present")
Signed-off-by: Max Filippov <[email protected]>
  • Loading branch information
jcmvbkbc committed Mar 9, 2022
1 parent 5b835d4 commit 8c9ab55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/kernel/mxhead.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ _SetupOCD:
* xt-gdb to single step via DEBUG exceptions received directly
* by ocd.
*/
#if XCHAL_HAVE_WINDOWED
movi a1, 1
movi a0, 0
wsr a1, windowstart
wsr a0, windowbase
rsync
#endif

movi a1, LOCKLEVEL
wsr a1, ps
Expand Down

0 comments on commit 8c9ab55

Please sign in to comment.