]> git.ipfire.org Git - thirdparty/glibc.git/blame - ports/sysdeps/unix/sysv/linux/alpha/sys/user.h
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / ports / sysdeps / unix / sysv / linux / alpha / sys / user.h
CommitLineData
d4697bc9 1/* Copyright (C) 1999-2014 Free Software Foundation, Inc.
f908ea6c
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
3214b89b
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
f908ea6c
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3214b89b 12 Lesser General Public License for more details.
f908ea6c 13
3214b89b 14 You should have received a copy of the GNU Lesser General Public
ab84e3ff
PE
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
f908ea6c
UD
17
18#ifndef _SYS_USER_H
19#define _SYS_USER_H 1
20
21/* The whole purpose of this file is for gdb/strace and gdb/strace
22 only. Don't read too much into it. Don't use it for anything other
23 than gdb/strace unless you know what you are doing. */
24
f908ea6c
UD
25#include <asm/reg.h>
26
27struct user
28{
29 unsigned long int regs[EF_SIZE / 8 + 32]; /* integer and fp regs */
30 size_t u_tsize; /* text size (pages) */
31 size_t u_dsize; /* data size (pages) */
32 size_t u_ssize; /* stack size (pages) */
33 unsigned long int start_code; /* text starting address */
34 unsigned long int start_data; /* data starting address */
35 unsigned long int start_stack; /* stack starting address */
36 long int signal; /* signal causing core dump */
37 struct regs *u_ar0; /* help gdb find registers */
38 unsigned long int magic; /* identifies a core file */
39 char u_comm[32]; /* user command name */
40};
41
6546e0c4
RH
42#define PAGE_SHIFT 13
43#define PAGE_SIZE (1UL << PAGE_SHIFT)
44#define PAGE_MASK (~(PAGE_SIZE-1))
f908ea6c
UD
45#define NBPG PAGE_SIZE
46#define UPAGES 1
47#define HOST_TEXT_START_ADDR (u.start_code)
48#define HOST_DATA_START_ADDR (u.start_data)
49#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
50
51#endif /* sys/user.h */