Skip to content

Clean up signal code

Franck Bui-Huu linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7signals: reduce {setup,restore}_sigcontext sizesarch/mips/kernel/signal-common.h+7 -284 replies
2/7signal: do not inline functions in signal-common.harch/mips/kernel/signal-common.h arch/mips/kernel/signal.c+156 -1390 replies
3/7signal: clean up sigframe structurearch/mips/kernel/signal-common.h arch/mips/kernel/signal.c arch/mips/kernel/signal32.c +1 more+81 -693 replies
4/7signal32: remove code duplicationarch/mips/kernel/signal32.c+4 -460 replies
5/7signal: test return value of install_sigtramp()arch/mips/kernel/signal.c+3 -30 replies
6/7signal: factorize debug codearch/mips/kernel/signal-common.h arch/mips/kernel/signal.c arch/mips/kernel/signal32.c +1 more+21 -240 replies
7/7signal32: reduce {setup,restore}_sigcontext32 sizesarch/mips/kernel/signal32.c+97 -1140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Clean up signal code

Hi,

This patchset cleans up signal related code by factorizing code shared by all signal sources. The consequence is that the signal code is decreased a lot.

This patchset has been splitted out into 7 differents patches to ease code review.

Two questions are still open:

(a) It seems that the status register is not saved by setup_sigcontext() and therefore not restored by restore_sigcontext(). Is it a bug ?

(b) Status register is saved by setup_sigcontext32() but not restored by restore_sigcontext(). Is it a bug ?

Unfortunately I do not have any 64 bits cross compiler setup and no adequate plateforms to test the changes introduced by this patchset in signal32.c and signal_n32.c. If someone could give it a try, that would be nice.

Please, consider.

Franck

---
 arch/mips/kernel/signal-common.h |  194 +++++------------------
 arch/mips/kernel/signal.c        |  216 ++++++++++++++++++++------
 arch/mips/kernel/signal32.c      |  326 +++++++++++++++-----------------------
 arch/mips/kernel/signal_n32.c    |   26 ++--
 4 files changed, 354 insertions(+), 408 deletions(-)