The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _ASM_X86_PTRACE_H |
| 13 | #define _ASM_X86_PTRACE_H |
| 14 | |
| 15 | #include <linux/compiler.h> |
| 16 | #include <asm/ptrace-abi.h> |
| 17 | |
| 18 | #ifndef __ASSEMBLY__ |
| 19 | |
| 20 | #ifdef __i386__ |
| 21 | |
| 22 | struct pt_regs { |
| 23 | long ebx; |
| 24 | long ecx; |
| 25 | long edx; |
| 26 | long esi; |
| 27 | long edi; |
| 28 | long ebp; |
| 29 | long eax; |
| 30 | int xds; |
| 31 | int xes; |
| 32 | int xfs; |
| 33 | |
| 34 | long orig_eax; |
| 35 | long eip; |
| 36 | int xcs; |
| 37 | long eflags; |
| 38 | long esp; |
| 39 | int xss; |
| 40 | }; |
| 41 | |
| 42 | #else |
| 43 | |
| 44 | struct pt_regs { |
| 45 | unsigned long r15; |
| 46 | unsigned long r14; |
| 47 | unsigned long r13; |
| 48 | unsigned long r12; |
| 49 | unsigned long rbp; |
| 50 | unsigned long rbx; |
| 51 | |
| 52 | unsigned long r11; |
| 53 | unsigned long r10; |
| 54 | unsigned long r9; |
| 55 | unsigned long r8; |
| 56 | unsigned long rax; |
| 57 | unsigned long rcx; |
| 58 | unsigned long rdx; |
| 59 | unsigned long rsi; |
| 60 | unsigned long rdi; |
| 61 | unsigned long orig_rax; |
| 62 | |
| 63 | unsigned long rip; |
| 64 | unsigned long cs; |
| 65 | unsigned long eflags; |
| 66 | unsigned long rsp; |
| 67 | unsigned long ss; |
| 68 | |
| 69 | }; |
| 70 | |
| 71 | #endif |
| 72 | #endif |
| 73 | |
| 74 | #endif |