From: Max Filippov Date: Tue, 28 Dec 2021 09:20:20 +0000 (-0800) Subject: xtensa: add missing XCHAL_HAVE_WINDOWED check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8c9ab55c0fbdc76cb876140c2dad75a610bb23ef;p=linux.git 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 --- diff --git a/arch/xtensa/kernel/mxhead.S b/arch/xtensa/kernel/mxhead.S index 9f38437427264..b702c0908b1f6 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