Path: blob/master/arch/xtensa/include/uapi/asm/ptrace.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* include/asm-xtensa/ptrace.h3*4* This file is subject to the terms and conditions of the GNU General Public5* License. See the file "COPYING" in the main directory of this archive6* for more details.7*8* Copyright (C) 2001 - 2005 Tensilica Inc.9*/1011#ifndef _UAPI_XTENSA_PTRACE_H12#define _UAPI_XTENSA_PTRACE_H1314#include <linux/types.h>1516/* Registers used by strace */1718#define REG_A_BASE 0x000019#define REG_AR_BASE 0x010020#define REG_PC 0x002021#define REG_PS 0x02e622#define REG_WB 0x024823#define REG_WS 0x024924#define REG_LBEG 0x020025#define REG_LEND 0x020126#define REG_LCOUNT 0x020227#define REG_SAR 0x02032829#define SYSCALL_NR 0x00ff3031/* Other PTRACE_ values defined in <linux/ptrace.h> using values 0-9,16,17,24 */3233#define PTRACE_GETREGS 1234#define PTRACE_SETREGS 1335#define PTRACE_GETXTREGS 1836#define PTRACE_SETXTREGS 1937#define PTRACE_GETHBPREGS 2038#define PTRACE_SETHBPREGS 2139#define PTRACE_GETFDPIC 224041#define PTRACE_GETFDPIC_EXEC 042#define PTRACE_GETFDPIC_INTERP 14344#ifndef __ASSEMBLER__4546struct user_pt_regs {47__u32 pc;48__u32 ps;49__u32 lbeg;50__u32 lend;51__u32 lcount;52__u32 sar;53__u32 windowstart;54__u32 windowbase;55__u32 threadptr;56__u32 syscall;57__u32 reserved[6 + 48];58__u32 a[64];59};6061#endif62#endif /* _UAPI_XTENSA_PTRACE_H */636465