diff options
| author | Christopher Ferris <cferris@google.com> | 2013-11-23 15:59:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-11-23 15:59:57 +0000 |
| commit | 985c3fbb3b1dabfa799e2a8c102867349bcb5a76 (patch) | |
| tree | 23082f903b8437992e61179f7f433afa39f76bcc /libc | |
| parent | 507f95e22b39fb58b9ffbba38ab593475b926af5 (diff) | |
| parent | 363390eaffaf991b13c9666bb82af7ab793976f6 (diff) | |
| download | bionic-985c3fbb3b1dabfa799e2a8c102867349bcb5a76.zip bionic-985c3fbb3b1dabfa799e2a8c102867349bcb5a76.tar.gz bionic-985c3fbb3b1dabfa799e2a8c102867349bcb5a76.tar.bz2 | |
Merge "Move arm user.h definitions to sys/user.h."
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/include/sys/user.h | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/libc/include/sys/user.h b/libc/include/sys/user.h index dc07c1f..fb98939 100644 --- a/libc/include/sys/user.h +++ b/libc/include/sys/user.h @@ -179,10 +179,48 @@ struct user { char u_comm[32]; }; +#elif defined(__arm__) + +struct user_fp { + struct fp_reg { + unsigned int sign1:1; + unsigned int unused:15; + unsigned int sign2:1; + unsigned int exponent:14; + unsigned int j:1; + unsigned int mantissa1:31; + unsigned int mantissa0:32; + } fpregs[8]; + unsigned int fpsr:32; + unsigned int fpcr:32; + unsigned char ftype[8]; + unsigned int init_flag; +}; +struct user{ + struct pt_regs regs; + int u_fpvalid; + unsigned long int u_tsize; + unsigned long int u_dsize; + unsigned long int u_ssize; + unsigned long start_code; + unsigned long start_stack; + long int signal; + int reserved; + unsigned long u_ar0; + unsigned long magic; + char u_comm[32]; + int u_debugreg[8]; + struct user_fp u_fp; + struct user_fp_struct * u_fp0; +}; + +#elif defined(__aarch64__) + +// There are no user structures for 64 bit arm. + #else -/* arm and aarch64 have uapi user.h headers. */ -#include <asm/user.h> +#error "Unsupported architecture." #endif |
