diff options
| author | Max Filippov <jcmvbkbc@gmail.com> | 2021-07-26 07:25:28 -0700 |
|---|---|---|
| committer | Max Filippov <jcmvbkbc@gmail.com> | 2021-10-18 22:19:35 -0700 |
| commit | 09af39f649dac66c2681ca53977275fe876690cc (patch) | |
| tree | 07db54073ea470f28a96ece0b383a836a20b2c81 /arch/xtensa/kernel/entry.S | |
| parent | 0b5372570b1f3fcb35255d28e707846e613c27f2 (diff) | |
| download | linux-09af39f649dac66c2681ca53977275fe876690cc.tar.gz linux-09af39f649dac66c2681ca53977275fe876690cc.tar.bz2 linux-09af39f649dac66c2681ca53977275fe876690cc.zip | |
xtensa: use register window specific opcodes only when present
xtensa core may be configured without register windows support, don't
use register window specific opcodes in that case. Use window register
specific opcodes to initialize hardware or reset core to a known state
regardless of the chosen ABI.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/entry.S')
| -rw-r--r-- | arch/xtensa/kernel/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index a144b467c3fd..8029ce24af92 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S @@ -940,12 +940,14 @@ unrecoverable_text: ENTRY(unrecoverable_exception) +#if XCHAL_HAVE_WINDOWED movi a0, 1 movi a1, 0 wsr a0, windowstart wsr a1, windowbase rsync +#endif movi a1, KERNEL_PS_WOE_MASK | LOCKLEVEL wsr a1, ps |
