Skip to content

Commit 8c9ab55

Browse files
committed
xtensa: add missing XCHAL_HAVE_WINDOWED check
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 <jcmvbkbc@gmail.com>
1 parent 5b835d4 commit 8c9ab55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/xtensa/kernel/mxhead.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ _SetupOCD:
3737
* xt-gdb to single step via DEBUG exceptions received directly
3838
* by ocd.
3939
*/
40+
#if XCHAL_HAVE_WINDOWED
4041
movi a1, 1
4142
movi a0, 0
4243
wsr a1, windowstart
4344
wsr a0, windowbase
4445
rsync
46+
#endif
4547

4648
movi a1, LOCKLEVEL
4749
wsr a1, ps

0 commit comments

Comments
 (0)