aa33c8cbba
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>
27 lines
347 B
C
27 lines
347 B
C
#ifndef _S390_KDEBUG_H
|
|
#define _S390_KDEBUG_H
|
|
|
|
/*
|
|
* Feb 2006 Ported to s390 <grundym@us.ibm.com>
|
|
*/
|
|
|
|
struct pt_regs;
|
|
|
|
enum die_val {
|
|
DIE_OOPS = 1,
|
|
DIE_BPT,
|
|
DIE_SSTEP,
|
|
DIE_PANIC,
|
|
DIE_NMI,
|
|
DIE_DIE,
|
|
DIE_NMIWATCHDOG,
|
|
DIE_KERNELDEBUG,
|
|
DIE_TRAP,
|
|
DIE_GPF,
|
|
DIE_CALL,
|
|
DIE_NMI_IPI,
|
|
};
|
|
|
|
extern void die(struct pt_regs *, const char *);
|
|
|
|
#endif
|