xref: /OK3568_Linux_fs/kernel/arch/sh/include/uapi/asm/ptrace.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 1999, 2000  Niibe Yutaka
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef _UAPI__ASM_SH_PTRACE_H
6*4882a593Smuzhiyun #define _UAPI__ASM_SH_PTRACE_H
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #define PTRACE_GETREGS		12	/* General registers */
10*4882a593Smuzhiyun #define PTRACE_SETREGS		13
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #define PTRACE_GETFPREGS	14	/* FPU registers */
13*4882a593Smuzhiyun #define PTRACE_SETFPREGS	15
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #define PTRACE_GETFDPIC		31	/* get the ELF fdpic loadmap address */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #define PTRACE_GETFDPIC_EXEC	0	/* [addr] request the executable loadmap */
18*4882a593Smuzhiyun #define PTRACE_GETFDPIC_INTERP	1	/* [addr] request the interpreter loadmap */
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #define	PTRACE_GETDSPREGS	55	/* DSP registers */
21*4882a593Smuzhiyun #define	PTRACE_SETDSPREGS	56
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #define PT_TEXT_END_ADDR	240
24*4882a593Smuzhiyun #define PT_TEXT_ADDR		244	/* &(struct user)->start_code */
25*4882a593Smuzhiyun #define PT_DATA_ADDR		248	/* &(struct user)->start_data */
26*4882a593Smuzhiyun #define PT_TEXT_LEN		252
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #include <asm/ptrace_32.h>
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #endif /* _UAPI__ASM_SH_PTRACE_H */
31