OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / bionic / libc / kernel / arch-sh / asm / ptrace.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __ASM_SH_PTRACE_H
13 #define __ASM_SH_PTRACE_H
14
15 #ifdef __SH5__
16 struct pt_regs {
17  unsigned long long pc;
18  unsigned long long sr;
19  unsigned long long syscall_nr;
20  unsigned long long regs[63];
21  unsigned long long tregs[8];
22  unsigned long long pad[2];
23 };
24 #else
25
26 #define REG_REG0 0
27 #define REG_REG15 15
28
29 #define REG_PC 16
30
31 #define REG_PR 17
32 #define REG_SR 18
33 #define REG_GBR 19
34 #define REG_MACH 20
35 #define REG_MACL 21
36
37 #define REG_SYSCALL 22
38
39 #define REG_FPREG0 23
40 #define REG_FPREG15 38
41 #define REG_XFREG0 39
42 #define REG_XFREG15 54
43
44 #define REG_FPSCR 55
45 #define REG_FPUL 56
46
47 struct pt_regs {
48  unsigned long regs[16];
49  unsigned long pc;
50  unsigned long pr;
51  unsigned long sr;
52  unsigned long gbr;
53  unsigned long mach;
54  unsigned long macl;
55  long tra;
56 };
57
58 struct pt_dspregs {
59  unsigned long a1;
60  unsigned long a0g;
61  unsigned long a1g;
62  unsigned long m0;
63  unsigned long m1;
64  unsigned long a0;
65  unsigned long x0;
66  unsigned long x1;
67  unsigned long y0;
68  unsigned long y1;
69  unsigned long dsr;
70  unsigned long rs;
71  unsigned long re;
72  unsigned long mod;
73 };
74
75 #define PTRACE_GETFDPIC 31  
76
77 #define PTRACE_GETFDPIC_EXEC 0  
78 #define PTRACE_GETFDPIC_INTERP 1  
79
80 #define PTRACE_GETDSPREGS 55
81 #define PTRACE_SETDSPREGS 56
82 #endif
83
84 #endif