summaryrefslogtreecommitdiff
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2021-12-28 12:20:20 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2022-03-10 00:59:15 +0300
commit8c9ab55c0fbdc76cb876140c2dad75a610bb23ef (patch)
treefa1d77ae433a07ecef3e1afc529cd0122d5452ca /arch/xtensa
parent5b835d4cade1723c5944a231cc685801f5a5cc6c (diff)
downloadlinux-8c9ab55c0fbdc76cb876140c2dad75a610bb23ef.tar.xz
xtensa: add missing XCHAL_HAVE_WINDOWED check
Add missing preprocessor conditions to secondary reset vector code. Fixes: 09af39f649da ("xtensa: use register window specific opcodes only when present") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/mxhead.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/mxhead.S b/arch/xtensa/kernel/mxhead.S
index 9f3843742726..b702c0908b1f 100644
--- a/arch/xtensa/kernel/mxhead.S
+++ b/arch/xtensa/kernel/mxhead.S
@@ -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