blob: 3f4404a57069c967a602e8e904933ca2d54a97c7 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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>
Elliott Hughesabd62612013-11-08 11:45:48 -080023#include <asm/processor-flags.h>
24#ifndef __ASSEMBLY__
25#ifdef __i386__
26struct pt_regs {
Tao Baod7db5942015-01-28 10:07:51 -080027 long ebx;
28 long ecx;
29 long edx;
30 long esi;
Tao Baod7db5942015-01-28 10:07:51 -080031 long edi;
32 long ebp;
33 long eax;
34 int xds;
Tao Baod7db5942015-01-28 10:07:51 -080035 int xes;
36 int xfs;
37 int xgs;
38 long orig_eax;
Tao Baod7db5942015-01-28 10:07:51 -080039 long eip;
40 int xcs;
41 long eflags;
42 long esp;
Tao Baod7db5942015-01-28 10:07:51 -080043 int xss;
Elliott Hughesabd62612013-11-08 11:45:48 -080044};
45#else
46struct pt_regs {
Tao Baod7db5942015-01-28 10:07:51 -080047 unsigned long r15;
48 unsigned long r14;
49 unsigned long r13;
50 unsigned long r12;
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned long rbp;
52 unsigned long rbx;
53 unsigned long r11;
54 unsigned long r10;
Tao Baod7db5942015-01-28 10:07:51 -080055 unsigned long r9;
56 unsigned long r8;
57 unsigned long rax;
58 unsigned long rcx;
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned long rdx;
60 unsigned long rsi;
61 unsigned long rdi;
62 unsigned long orig_rax;
Tao Baod7db5942015-01-28 10:07:51 -080063 unsigned long rip;
64 unsigned long cs;
65 unsigned long eflags;
66 unsigned long rsp;
Tao Baod7db5942015-01-28 10:07:51 -080067 unsigned long ss;
Elliott Hughesabd62612013-11-08 11:45:48 -080068};
69#endif
70#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080071#endif