blob: 7c5bf01359cb8a9806de1345a6cbc3529e1b3266 [file] [log] [blame]
Elliott Hughesd3e64a32013-09-30 17:41:08 -07001/****************************************************************************
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_X86_USER_64_H
20#define _ASM_X86_USER_64_H
21#include <asm/types.h>
22#include <asm/page.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct user_i387_struct {
25 unsigned short cwd;
26 unsigned short swd;
27 unsigned short twd;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 unsigned short fop;
30 __u64 rip;
31 __u64 rdp;
32 __u32 mxcsr;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u32 mxcsr_mask;
35 __u32 st_space[32];
36 __u32 xmm_space[64];
37 __u32 padding[24];
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39};
40struct user_regs_struct {
41 unsigned long r15;
42 unsigned long r14;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 unsigned long r13;
45 unsigned long r12;
46 unsigned long bp;
47 unsigned long bx;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 unsigned long r11;
50 unsigned long r10;
51 unsigned long r9;
52 unsigned long r8;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned long ax;
55 unsigned long cx;
56 unsigned long dx;
57 unsigned long si;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned long di;
60 unsigned long orig_ax;
61 unsigned long ip;
62 unsigned long cs;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned long flags;
65 unsigned long sp;
66 unsigned long ss;
67 unsigned long fs_base;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned long gs_base;
70 unsigned long ds;
71 unsigned long es;
72 unsigned long fs;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned long gs;
75};
76struct user {
77 struct user_regs_struct regs;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 int u_fpvalid;
80 int pad0;
81 struct user_i387_struct i387;
82 unsigned long int u_tsize;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 unsigned long int u_dsize;
85 unsigned long int u_ssize;
86 unsigned long start_code;
87 unsigned long start_stack;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 long int signal;
90 int reserved;
91 int pad1;
92 unsigned long u_ar0;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 struct user_i387_struct *u_fpstate;
95 unsigned long magic;
96 char u_comm[32];
97 unsigned long u_debugreg[8];
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 unsigned long error_code;
100 unsigned long fault_address;
101};
102#define NBPG PAGE_SIZE
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define UPAGES 1
105#define HOST_TEXT_START_ADDR (u.start_code)
106#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
107#endif
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */