Skip to content

xtensa: add division by zero exception handler

Max Filippov lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- simplify artificial division by 0 handler

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xtensa: add trap handler for division by zeroarch/xtensa/kernel/traps.c+7 -10 replies
2/3xtensa: support artificial division by 0 exceptionarch/xtensa/kernel/traps.c+23 -00 replies
3/3xtensa: improve call0 ABI probingarch/xtensa/include/asm/thread_info.h arch/xtensa/kernel/asm-offsets.c arch/xtensa/kernel/entry.S +1 more+24 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] xtensa: add division by zero exception handler

Hello,

this series adds handlers for hardware and artificial division by zero exceptions and improves call0 ABI probing in the presence of unrelated illegal instructions.

Changes v2->v3:

- simplify artificial division by 0 handler

Changes v1->v2:

- split ABI probing improvement from the artificial division by 0
- don't limit artificial division by 0 pattern detection to configurations without HW division opcodes, do it always

Max Filippov (3):
xtensa: add trap handler for division by zero
xtensa: support artificial division by 0 exception
xtensa: improve call0 ABI probing

 arch/xtensa/include/asm/thread_info.h |  4 +++
 arch/xtensa/kernel/asm-offsets.c      |  3 ++
 arch/xtensa/kernel/entry.S            |  5 ++++
 arch/xtensa/kernel/traps.c            | 43 ++++++++++++++++++++++++++-
 4 files changed, 54 insertions(+), 1 deletion(-)
Signature · 1 line
2.30.2