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 _UAPI_ASM_X86_PTRACE_H 20 #define _UAPI_ASM_X86_PTRACE_H 21 #include <linux/compiler.h> 22 #include <asm/ptrace-abi.h> 23 #include <asm/processor-flags.h> 24 #ifndef __ASSEMBLY__ 25 #ifdef __i386__ 26 struct pt_regs { 27 long ebx; 28 long ecx; 29 long edx; 30 long esi; 31 long edi; 32 long ebp; 33 long eax; 34 int xds; 35 int xes; 36 int xfs; 37 int xgs; 38 long orig_eax; 39 long eip; 40 int xcs; 41 long eflags; 42 long esp; 43 int xss; 44 }; 45 #else 46 struct pt_regs { 47 unsigned long r15; 48 unsigned long r14; 49 unsigned long r13; 50 unsigned long r12; 51 unsigned long rbp; 52 unsigned long rbx; 53 unsigned long r11; 54 unsigned long r10; 55 unsigned long r9; 56 unsigned long r8; 57 unsigned long rax; 58 unsigned long rcx; 59 unsigned long rdx; 60 unsigned long rsi; 61 unsigned long rdi; 62 unsigned long orig_rax; 63 unsigned long rip; 64 unsigned long cs; 65 unsigned long eflags; 66 unsigned long rsp; 67 unsigned long ss; 68 }; 69 #endif 70 #endif 71 #endif 72