1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ >> 2 #ifndef _UAPI_M68K_PTRACE_H >> 3 #define _UAPI_M68K_PTRACE_H >> 4 >> 5 #define PT_D1 0 >> 6 #define PT_D2 1 >> 7 #define PT_D3 2 >> 8 #define PT_D4 3 >> 9 #define PT_D5 4 >> 10 #define PT_D6 5 >> 11 #define PT_D7 6 >> 12 #define PT_A0 7 >> 13 #define PT_A1 8 >> 14 #define PT_A2 9 >> 15 #define PT_A3 10 >> 16 #define PT_A4 11 >> 17 #define PT_A5 12 >> 18 #define PT_A6 13 >> 19 #define PT_D0 14 >> 20 #define PT_USP 15 >> 21 #define PT_ORIG_D0 16 >> 22 #define PT_SR 17 >> 23 #define PT_PC 18 >> 24 >> 25 #ifndef __ASSEMBLY__ >> 26 >> 27 /* this struct defines the way the registers are stored on the >> 28 stack during a system call. */ >> 29 >> 30 struct pt_regs { >> 31 long d1; >> 32 long d2; >> 33 long d3; >> 34 long d4; >> 35 long d5; >> 36 long a0; >> 37 long a1; >> 38 long a2; >> 39 long d0; >> 40 long orig_d0; >> 41 long stkadj; >> 42 #ifdef __mcoldfire__ >> 43 unsigned format : 4; /* frame format specifier */ >> 44 unsigned vector : 12; /* vector offset */ >> 45 unsigned short sr; >> 46 unsigned long pc; >> 47 #else >> 48 unsigned short sr; >> 49 unsigned long pc; >> 50 unsigned format : 4; /* frame format specifier */ >> 51 unsigned vector : 12; /* vector offset */ >> 52 #endif >> 53 }; >> 54 2 /* 55 /* 3 * Ptrace definitions for the Hexagon architec !! 56 * This is the extended stack used by signal handlers and the context 4 * !! 57 * switcher: it's pushed after the normal "struct pt_regs". 5 * Copyright (c) 2010-2011, The Linux Foundati << 6 * << 7 * This program is free software; you can redi << 8 * it under the terms of the GNU General Publi << 9 * only version 2 as published by the Free Sof << 10 * << 11 * This program is distributed in the hope tha << 12 * but WITHOUT ANY WARRANTY; without even the << 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR << 14 * GNU General Public License for more details << 15 * << 16 * You should have received a copy of the GNU << 17 * along with this program; if not, write to t << 18 * Foundation, Inc., 51 Franklin Street, Fifth << 19 * 02110-1301, USA. << 20 */ 58 */ >> 59 struct switch_stack { >> 60 unsigned long d6; >> 61 unsigned long d7; >> 62 unsigned long a3; >> 63 unsigned long a4; >> 64 unsigned long a5; >> 65 unsigned long a6; >> 66 unsigned long retpc; >> 67 }; 21 68 22 #ifndef _ASM_PTRACE_H !! 69 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ 23 #define _ASM_PTRACE_H !! 70 #define PTRACE_GETREGS 12 >> 71 #define PTRACE_SETREGS 13 >> 72 #define PTRACE_GETFPREGS 14 >> 73 #define PTRACE_SETFPREGS 15 24 74 25 #include <asm/registers.h> !! 75 #define PTRACE_GET_THREAD_AREA 25 26 76 27 #define instruction_pointer(regs) pt_elr(regs) !! 77 #define PTRACE_GETFDPIC 31 28 #define user_stack_pointer(regs) ((regs)->r29) << 29 78 30 #define profile_pc(regs) instruction_pointer(r !! 79 #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ 31 80 32 #endif !! 81 #define PTRACE_GETFDPIC_EXEC 0 >> 82 #define PTRACE_GETFDPIC_INTERP 1 >> 83 >> 84 #endif /* __ASSEMBLY__ */ >> 85 #endif /* _UAPI_M68K_PTRACE_H */ 33 86
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.