xtensa: rearrange unaligned exception handler
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 13 Jun 2023 08:18:26 +0000 (01:18 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Jun 2023 04:56:27 +0000 (21:56 -0700)
commit651d4aff6892f630d399201f9ce94e240d932520
tree1df0aadc32115607e9d2be51f29f06d51d414252
parent3522bcfe1ecd48b9db1bbecec5f27010f77b639b
xtensa: rearrange unaligned exception handler

- extract initialization part of the exception handler into a separate
  function.
- use single label for invalid instruction instead of two labels, one
  for load and one for store, at one place.
- use sext instruction for sign extension when available.
- store SAR on the stack instead of in a0.
- replace numeric labels for load and store writeback with .Lload_w and
  .Lstore_w respectively.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/align.S