diff options
| author | Tony SIM <sim.chinyeow@renesas.com> | 2010-01-28 17:04:55 +0900 |
|---|---|---|
| committer | Tony Sim <sim.chinyeow@renesas.com> | 2010-02-01 16:06:40 +0900 |
| commit | 1d7a8944d8b416d06974f82999dc46c4a44b771a (patch) | |
| tree | 7dac89f2198bbcf341abdf31350e6f24b460a764 /libc/kernel/arch-sh/asm/user.h | |
| parent | 95604529ec25fe7923ba88312c590f38aa5e3d9e (diff) | |
| download | bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.zip bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.tar.gz bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.tar.bz2 | |
added headers for SuperH which automatically generate by update_all.py
base on kernel 2.6.27 arch/sh/include/asm/
Diffstat (limited to 'libc/kernel/arch-sh/asm/user.h')
| -rw-r--r-- | libc/kernel/arch-sh/asm/user.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libc/kernel/arch-sh/asm/user.h b/libc/kernel/arch-sh/asm/user.h new file mode 100644 index 0000000..81ab4e3 --- /dev/null +++ b/libc/kernel/arch-sh/asm/user.h @@ -0,0 +1,55 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __ASM_SH_USER_H +#define __ASM_SH_USER_H + +#include <asm/ptrace.h> +#include <asm/page.h> + +#ifdef __SH5__ +struct user_fpu_struct { + unsigned long fp_regs[32]; + unsigned int fpscr; +}; +#else +struct user_fpu_struct { + unsigned long fp_regs[16]; + unsigned long xfp_regs[16]; + unsigned long fpscr; + unsigned long fpul; +}; +#endif + +struct user { + struct pt_regs regs; + struct user_fpu_struct fpu; + int u_fpvalid; + size_t u_tsize; + size_t u_dsize; + size_t u_ssize; + unsigned long start_code; + unsigned long start_data; + unsigned long start_stack; + long int signal; + unsigned long u_ar0; + struct user_fpu_struct* u_fpstate; + unsigned long magic; + char u_comm[32]; +}; + +#define NBPG PAGE_SIZE +#define UPAGES 1 +#define HOST_TEXT_START_ADDR (u.start_code) +#define HOST_DATA_START_ADDR (u.start_data) +#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) + +#endif |
