1 #ifndef _ASM_POWERPC_SIGCONTEXT_H
2 #define _ASM_POWERPC_SIGCONTEXT_H
3 
4 /*
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version
8  * 2 of the License, or (at your option) any later version.
9  */
10 
11 struct pt_regs {
12 	unsigned long gpr[32];
13 	unsigned long nip;
14 	unsigned long msr;
15 	unsigned long orig_gpr3;	/* Used for restarting system calls */
16 	unsigned long ctr;
17 	unsigned long link;
18 	unsigned long xer;
19 	unsigned long ccr;
20 	unsigned long mq;		/* 601 only (not used at present) */
21 	unsigned long trap;		/* Reason for being here */
22 	/* N.B. for critical exceptions on 4xx, the dar and dsisr
23 	   fields are overloaded to hold srr0 and srr1. */
24 	unsigned long dar;		/* Fault registers */
25 	unsigned long dsisr;		/* on 4xx/Book-E used for ESR */
26 	unsigned long result;		/* Result of a system call */
27 };
28 
29 struct sigcontext {
30 	unsigned long	_unused[4];
31 	int		signal;
32 #ifdef __powerpc64__
33 	int		_pad0;
34 #endif
35 	unsigned long	handler;
36 	unsigned long	oldmask;
37 	struct pt_regs	*regs;
38 };
39 
40 #endif /* _ASM_POWERPC_SIGCONTEXT_H */
41