blob: 7be3118353298cd0529876c9704e8d937e4473cd [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
Elliott Hughesd3e64a32013-09-30 17:41:08 -070019#ifndef _ASM_X86_USER_32_H
20#define _ASM_X86_USER_32_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/page.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022struct user_i387_struct {
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024 long cwd;
25 long swd;
26 long twd;
27 long fip;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 long fcs;
30 long foo;
31 long fos;
32 long st_space[20];
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035struct user_fxsr_struct {
36 unsigned short cwd;
37 unsigned short swd;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 unsigned short twd;
40 unsigned short fop;
41 long fip;
42 long fcs;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 long foo;
45 long fos;
46 long mxcsr;
47 long reserved;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 long st_space[32];
50 long xmm_space[32];
51 long padding[56];
52};
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054struct user_regs_struct {
Elliott Hughesd3e64a32013-09-30 17:41:08 -070055 unsigned long bx;
56 unsigned long cx;
57 unsigned long dx;
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesd3e64a32013-09-30 17:41:08 -070059 unsigned long si;
60 unsigned long di;
61 unsigned long bp;
62 unsigned long ax;
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesd3e64a32013-09-30 17:41:08 -070064 unsigned long ds;
65 unsigned long es;
66 unsigned long fs;
67 unsigned long gs;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned long orig_ax;
70 unsigned long ip;
71 unsigned long cs;
72 unsigned long flags;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned long sp;
75 unsigned long ss;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080077struct user{
Elliott Hughesd3e64a32013-09-30 17:41:08 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079 struct user_regs_struct regs;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080080 int u_fpvalid;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080081 struct user_i387_struct i387;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082 unsigned long int u_tsize;
Elliott Hughesd3e64a32013-09-30 17:41:08 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080084 unsigned long int u_dsize;
85 unsigned long int u_ssize;
86 unsigned long start_code;
87 unsigned long start_stack;
Elliott Hughesd3e64a32013-09-30 17:41:08 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080089 long int signal;
90 int reserved;
Elliott Hughesd3e64a32013-09-30 17:41:08 -070091 unsigned long u_ar0;
92 struct user_i387_struct *u_fpstate;
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080094 unsigned long magic;
95 char u_comm[32];
96 int u_debugreg[8];
97};
Elliott Hughesd3e64a32013-09-30 17:41:08 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080099#define NBPG PAGE_SIZE
100#define UPAGES 1
101#define HOST_TEXT_START_ADDR (u.start_code)
102#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
Elliott Hughesd3e64a32013-09-30 17:41:08 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800104#endif