• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _UAPI_H8300_PTRACE_H
2 #define _UAPI_H8300_PTRACE_H
3 
4 #ifndef __ASSEMBLY__
5 
6 #define PT_ER1	   0
7 #define PT_ER2	   1
8 #define PT_ER3	   2
9 #define PT_ER4	   3
10 #define PT_ER5	   4
11 #define PT_ER6	   5
12 #define PT_ER0	   6
13 #define PT_USP	   7
14 #define PT_ORIG_ER0	   8
15 #define PT_CCR	   9
16 #define PT_PC	   10
17 #define PT_EXR     11
18 
19 /* this struct defines the way the registers are stored on the
20    stack during a system call. */
21 
22 struct pt_regs {
23 	long     retpc;
24 	long     er4;
25 	long     er5;
26 	long     er6;
27 	long     er3;
28 	long     er2;
29 	long     er1;
30 	long     orig_er0;
31 	long	 sp;
32 	unsigned short	 ccr;
33 	long     er0;
34 	long     vector;
35 #if defined(__H8300S__)
36 	unsigned short	 exr;
37 #endif
38 	unsigned long  pc;
39 } __attribute__((aligned(2), packed));
40 
41 #endif /* __ASSEMBLY__ */
42 #endif /* _UAPI_H8300_PTRACE_H */
43