1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * linux/include/asm-m32r/ptrace.h
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
10 * Copyright (C) 2001-2002, 2004 Hirokazu Takata <takata at linux-m32r.org>
12 #ifndef _UAPI_ASM_M32R_PTRACE_H
13 #define _UAPI_ASM_M32R_PTRACE_H
16 /* 0 - 13 are integer registers (general purpose registers). */
36 /* processor status and miscellaneous context registers. */
39 #define PT_ACC1H 17 /* ISA_DSP_LEVEL2 only */
40 #define PT_ACC1L 18 /* ISA_DSP_LEVEL2 only */
51 /* virtual pt_reg entry for gdb */
57 /* Control registers. */
58 #define SPR_CR0 PT_PSW
59 #define SPR_CR1 PT_CBR /* read only */
60 #define SPR_CR2 PT_SPI
61 #define SPR_CR3 PT_SPU
63 #define SPR_CR5 PT_EVB /* part of M32R/E, M32R/I core only */
64 #define SPR_CR6 PT_BPC
66 #define SPR_CR8 PT_BBPSW
71 #define SPR_CR13 PT_WR
72 #define SPR_CR14 PT_BBPC
75 /* this struct defines the way the registers are stored on the
76 stack during a system call. */
78 /* Saved main processor registers. */
82 struct pt_regs
*pt_regs
;
95 /* Saved main processor status and miscellaneous context registers. */
98 unsigned long acc1h
; /* ISA_DSP_LEVEL2 only */
99 unsigned long acc1l
; /* ISA_DSP_LEVEL2 only */
101 unsigned long bpc
; /* saved PC for TRAP syscalls */
104 unsigned long spu
; /* saved user stack */
106 unsigned long lr
; /* saved PC for JL syscalls */
107 unsigned long spi
; /* saved kernel stack */
108 unsigned long orig_r0
;
111 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
112 #define PTRACE_GETREGS 12
113 #define PTRACE_SETREGS 13
115 #define PTRACE_OLDSETOPTIONS 21
118 #endif /* _UAPI_ASM_M32R_PTRACE_H */