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(-)