summaryrefslogtreecommitdiffstats
path: root/libc/kernel/arch-sh/asm/ptrace.h
blob: 452af81349e0ac57093a5e7656971e9cd654d50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ****************************************************************************
 ****************************************************************************/
#ifndef __ASM_SH_PTRACE_H
#define __ASM_SH_PTRACE_H

#ifdef __SH5__
struct pt_regs {
 unsigned long long pc;
 unsigned long long sr;
 unsigned long long syscall_nr;
 unsigned long long regs[63];
 unsigned long long tregs[8];
 unsigned long long pad[2];
};
#else

#define REG_REG0 0
#define REG_REG15 15

#define REG_PC 16

#define REG_PR 17
#define REG_SR 18
#define REG_GBR 19
#define REG_MACH 20
#define REG_MACL 21

#define REG_SYSCALL 22

#define REG_FPREG0 23
#define REG_FPREG15 38
#define REG_XFREG0 39
#define REG_XFREG15 54

#define REG_FPSCR 55
#define REG_FPUL 56

struct pt_regs {
 unsigned long regs[16];
 unsigned long pc;
 unsigned long pr;
 unsigned long sr;
 unsigned long gbr;
 unsigned long mach;
 unsigned long macl;
 long tra;
};

struct pt_dspregs {
 unsigned long a1;
 unsigned long a0g;
 unsigned long a1g;
 unsigned long m0;
 unsigned long m1;
 unsigned long a0;
 unsigned long x0;
 unsigned long x1;
 unsigned long y0;
 unsigned long y1;
 unsigned long dsr;
 unsigned long rs;
 unsigned long re;
 unsigned long mod;
};

#define PTRACE_GETFDPIC 31  

#define PTRACE_GETFDPIC_EXEC 0  
#define PTRACE_GETFDPIC_INTERP 1  

#define PTRACE_GETDSPREGS 55
#define PTRACE_SETDSPREGS 56
#endif

#endif