[S390] cleanup trap handling
Move the program interruption code and the translation exception identifier
to the pt_regs structure as 'int_code' and 'int_parm_long' and make the
first level interrupt handler in entry[64].S store the two values. That
makes it possible to drop 'prot_addr' and 'trap_no' from the thread_struct
and to reduce the number of arguments to a lot of functions. Finally
un-inline do_trap. Overall this saves 5812 bytes in the .text section of
the 64 bit kernel.
Signed-off-by:
Martin Schwidefsky <schwidefsky@de.ibm.com>
Showing
- arch/s390/include/asm/kdebug.h 1 addition, 1 deletionarch/s390/include/asm/kdebug.h
- arch/s390/include/asm/processor.h 0 additions, 2 deletionsarch/s390/include/asm/processor.h
- arch/s390/include/asm/ptrace.h 2 additions, 1 deletionarch/s390/include/asm/ptrace.h
- arch/s390/include/asm/syscall.h 1 addition, 1 deletionarch/s390/include/asm/syscall.h
- arch/s390/kernel/asm-offsets.c 2 additions, 1 deletionarch/s390/kernel/asm-offsets.c
- arch/s390/kernel/compat_signal.c 6 additions, 2 deletionsarch/s390/kernel/compat_signal.c
- arch/s390/kernel/entry.S 11 additions, 11 deletionsarch/s390/kernel/entry.S
- arch/s390/kernel/entry.h 5 additions, 5 deletionsarch/s390/kernel/entry.h
- arch/s390/kernel/entry64.S 13 additions, 14 deletionsarch/s390/kernel/entry64.S
- arch/s390/kernel/signal.c 12 additions, 8 deletionsarch/s390/kernel/signal.c
- arch/s390/kernel/traps.c 59 additions, 109 deletionsarch/s390/kernel/traps.c
- arch/s390/mm/fault.c 46 additions, 55 deletionsarch/s390/mm/fault.c
Loading
Please register or sign in to comment