1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 2 /* 3 * Ptrace definitions for the Hexagon architec 4 * 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 */ 21 22 #ifndef _ASM_PTRACE_H 23 #define _ASM_PTRACE_H 24 25 #include <asm/registers.h> 26 27 #define instruction_pointer(regs) pt_elr(regs) 28 #define user_stack_pointer(regs) ((regs)->r29) 29 30 #define profile_pc(regs) instruction_pointer(r 31 32 #endif 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.