Path: blob/master/arch/parisc/include/uapi/asm/ptrace.h
26305 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/* written by Philipp Rumpf, Copyright (C) 1999 SuSE GmbH Nuernberg2** Copyright (C) 2000 Grant Grundler, Hewlett-Packard3*/4#ifndef _UAPI_PARISC_PTRACE_H5#define _UAPI_PARISC_PTRACE_H678#include <linux/types.h>910/* This struct defines the way the registers are stored on the11* stack during a system call.12*13* N.B. gdb/strace care about the size and offsets within this14* structure. If you change things, you may break object compatibility15* for those applications.16*17* Please do NOT use this structure for future programs, but use18* user_regs_struct (see below) instead.19*20* It can be accessed through PTRACE_PEEKUSR/PTRACE_POKEUSR only.21*/2223struct pt_regs {24unsigned long gr[32]; /* PSW is in gr[0] */25__u64 fr[32];26unsigned long sr[ 8];27unsigned long iasq[2];28unsigned long iaoq[2];29unsigned long cr27;30unsigned long pad0; /* available for other uses */31unsigned long orig_r28;32unsigned long ksp;33unsigned long kpc;34unsigned long sar; /* CR11 */35unsigned long iir; /* CR19 */36unsigned long isr; /* CR20 */37unsigned long ior; /* CR21 */38unsigned long ipsw; /* CR22 */39};4041/**42* struct user_regs_struct - User general purpose registers43*44* This is the user-visible general purpose register state structure45* which is used to define the elf_gregset_t.46*47* It can be accessed through PTRACE_GETREGSET with NT_PRSTATUS48* and through PTRACE_GETREGS.49*/50struct user_regs_struct {51unsigned long gr[32]; /* PSW is in gr[0] */52unsigned long sr[8];53unsigned long iaoq[2];54unsigned long iasq[2];55unsigned long sar; /* CR11 */56unsigned long iir; /* CR19 */57unsigned long isr; /* CR20 */58unsigned long ior; /* CR21 */59unsigned long ipsw; /* CR22 */60unsigned long cr0;61unsigned long cr24, cr25, cr26, cr27, cr28, cr29, cr30, cr31;62unsigned long cr8, cr9, cr12, cr13, cr10, cr15;63unsigned long _pad[80-64]; /* pad to ELF_NGREG (80) */64};6566/**67* struct user_fp_struct - User floating point registers68*69* This is the user-visible floating point register state structure.70* It uses the same layout and size as elf_fpregset_t.71*72* It can be accessed through PTRACE_GETREGSET with NT_PRFPREG73* and through PTRACE_GETFPREGS.74*/75struct user_fp_struct {76__u64 fr[32];77};787980/*81* The numbers chosen here are somewhat arbitrary but absolutely MUST82* not overlap with any of the number assigned in <linux/ptrace.h>.83*84* These ones are taken from IA-64 on the assumption that theirs are85* the most correct (and we also want to support PTRACE_SINGLEBLOCK86* since we have taken branch traps too)87*/88#define PTRACE_SINGLEBLOCK 12 /* resume execution until next branch */8990#define PTRACE_GETREGS 1891#define PTRACE_SETREGS 1992#define PTRACE_GETFPREGS 1493#define PTRACE_SETFPREGS 159495#endif /* _UAPI_PARISC_PTRACE_H */969798