• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _ARM_USER_H
13 #define _ARM_USER_H
14 
15 #include <asm/page.h>
16 #include <asm/ptrace.h>
17 
18 struct user_fp {
19  struct fp_reg {
20  unsigned int sign1:1;
21  unsigned int unused:15;
22  unsigned int sign2:1;
23  unsigned int exponent:14;
24  unsigned int j:1;
25  unsigned int mantissa1:31;
26  unsigned int mantissa0:32;
27  } fpregs[8];
28  unsigned int fpsr:32;
29  unsigned int fpcr:32;
30  unsigned char ftype[8];
31  unsigned int init_flag;
32 };
33 
34 struct user{
35 
36  struct pt_regs regs;
37 
38  int u_fpvalid;
39 
40  unsigned long int u_tsize;
41  unsigned long int u_dsize;
42  unsigned long int u_ssize;
43  unsigned long start_code;
44  unsigned long start_stack;
45  long int signal;
46  int reserved;
47  struct pt_regs * u_ar0;
48 
49  unsigned long magic;
50  char u_comm[32];
51  int u_debugreg[8];
52  struct user_fp u_fp;
53  struct user_fp_struct * u_fp0;
54 
55 };
56 #define NBPG PAGE_SIZE
57 #define UPAGES 1
58 #define HOST_TEXT_START_ADDR (u.start_code)
59 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
60 
61 struct user_vfp {
62  unsigned long long fpregs[32];
63  unsigned long fpscr;
64 };
65 
66 struct user_vfp_exc {
67  unsigned long fpexc;
68  unsigned long fpinst;
69  unsigned long fpinst2;
70 };
71 
72 #endif
73