1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _ASM_PTRACE_H 20 #define _ASM_PTRACE_H 21 #include <linux/types.h> 22 #include <stdint.h> 23 #define GPR_BASE 0 24 #define GPR_NUM 32 25 #define GPR_END (GPR_BASE + GPR_NUM - 1) 26 #define ARG0 (GPR_END + 1) 27 #define PC (GPR_END + 2) 28 #define BADVADDR (GPR_END + 3) 29 #define NUM_FPU_REGS 32 30 struct user_pt_regs { 31 unsigned long regs[32]; 32 unsigned long orig_a0; 33 unsigned long csr_era; 34 unsigned long csr_badv; 35 unsigned long reserved[10]; 36 } __attribute__((aligned(8))); 37 struct user_fp_state { 38 uint64_t fpr[32]; 39 uint64_t fcc; 40 uint32_t fcsr; 41 }; 42 struct user_lsx_state { 43 uint64_t vregs[32 * 2]; 44 }; 45 struct user_lasx_state { 46 uint64_t vregs[32 * 4]; 47 }; 48 #define PTRACE_SYSEMU 0x1f 49 #define PTRACE_SYSEMU_SINGLESTEP 0x20 50 #endif 51