Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / microblaze / sys / user.h
blobe23e05c9ed6178ac6347c573791c0592e3ac690c
1 /* Copyright (C) 2009-2015 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _SYS_USER_H
20 # define _SYS_USER_H 1
22 /* The whole purpose of this file is for GDB and GDB only. Don't read
23 too much into it. Don't use it for anything other than GDB unless
24 you know what you are doing. */
26 struct user_fpregs_struct
28 long int cwd;
29 long int swd;
30 long int twd;
31 long int fip;
32 long int fcs;
33 long int foo;
34 long int fos;
35 long int st_space [20];
38 struct user_regs_struct
40 unsigned int gpr[32];
41 unsigned int pc;
42 unsigned int msr;
43 unsigned int ear;
44 unsigned int esr;
45 unsigned int fsr;
46 unsigned int btr;
47 unsigned int pvr[12];
50 struct user
52 struct user_regs_struct regs;
53 int u_fpvalid;
54 struct user_fpregs_struct elf_fpregset_t;
55 unsigned long int u_tsize;
56 unsigned long int u_dsize;
57 unsigned long int u_ssize;
58 unsigned long start_code;
59 unsigned long start_stack;
60 long int signal;
61 int reserved;
62 struct user_regs_struct* u_ar0;
63 struct user_fpregs_struct* u_fpstate;
64 unsigned long int magic;
65 char u_comm [32];
66 int u_debugreg [8];
69 # define PAGE_SHIFT 12
70 # define PAGE_SIZE (1UL << PAGE_SHIFT)
71 # define PAGE_MASK (~(PAGE_SIZE-1))
72 # define NBPG PAGE_SIZE
73 # define UPAGES 1
74 # define HOST_TEXT_START_ADDR (u.start_code)
75 # define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
77 #endif /* _SYS_USER_H */