Skip to content

Add generic ARM ISA condition code check

Leif Lindholm linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add generic ARM instruction set condition code checks.arch/arm/include/asm/opcodes.h arch/arm/kernel/Makefile arch/arm/kernel/opcodes.c+90 -11 reply
1/4Add generic ARM instruction set condition code checks.+0 -00 replies
2/4Use generic ARM instruction set condition code checks for nwfpe.arch/arm/nwfpe/entry.S arch/arm/nwfpe/fpopcode.c arch/arm/nwfpe/fpopcode.h+5 -320 replies
3/4Add condition code checking to SWP emulation handler.arch/arm/kernel/swp_emulate.c+12 -01 reply
4/4Use generic ARM instruction set condition code checks for kprobes.arch/arm/kernel/kprobes-test.c+6 -601 reply
4/4Use generic ARM instruction set condition code checks for kprobes.+0 -02 replies
4/4Use generic ARM instruction set condition code checks for kprobes.+0 -00 replies
4/4Use generic ARM instruction set condition code checks for kprobes.+0 -00 replies
4/4Use generic ARM instruction set condition code checks for kprobes.+0 -00 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchJon Medhurst
1/4
1/4
2/4
3/4
4/4A-b
4/4A-b
4/4A-b
4/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Add generic ARM ISA condition code check

There are several locations in the kernel where software needs to inspect the condition codes of trapped instructions. The original bitmask implementation in the nwfpe code does this in an efficient manner. This series breaks this code out of nwfpe/fpopcode.{ch} into a standalone file for opcode operations, and contains additional patches to kprobes and SWP eumlation to use this interface.

---

Reworked based on feedback on RFC set submitted on 2011-11-25.

Leif Lindholm (4):
Add generic ARM instruction set condition code checks. Use generic ARM instruction set condition code checks for nwfpe. Add condition code checking to SWP emulation handler. Use generic ARM instruction set condition code checks for kprobes.

 arch/arm/include/asm/opcodes.h |   20 ++++++++++++
 arch/arm/kernel/Makefile       |    2 +
 arch/arm/kernel/kprobes-test.c |   66 +++-----------------------------------
 arch/arm/kernel/opcodes.c      |   69 ++++++++++++++++++++++++++++++++++++++++
 arch/arm/kernel/swp_emulate.c  |   12 +++++++
 arch/arm/nwfpe/entry.S         |    8 +++--
 arch/arm/nwfpe/fpopcode.c      |   26 ---------------
 arch/arm/nwfpe/fpopcode.h      |    3 --
 8 files changed, 113 insertions(+), 93 deletions(-)
 create mode 100644 arch/arm/include/asm/opcodes.h
 create mode 100644 arch/arm/kernel/opcodes.c
Signature · 1 line
Signature