]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/csky/sys/user.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / csky / sys / user.h
CommitLineData
5f72b005 1/* ptrace register data format definitions. C-SKY version.
04277e02 2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
5f72b005
MH
3 This file is part of the GNU C Library.
4
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
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
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.
14
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/>. */
18
19#ifndef _SYS_USER_H
20#define _SYS_USER_H 1
21
22struct user_fpregs {
23 unsigned long fsr; /* FPU status reg. */
24 unsigned long fesr; /* FPU exception status reg. */
25 unsigned long fp[32]; /* FPU general regs. */
26};
27
28struct user_regs {
29 unsigned long int uregs[34]; /* CSKY V2 has 32 general rgister. */
30};
31
32/* When the kernel dumps core, it starts by dumping the user struct -
33 this will be used by gdb to figure out where the data and stack segments
34 are within the file, and what virtual addresses to use. */
35struct user{
36/* We start with the registers, to mimic the way that "memory" is returned
37 from the ptrace(3,...) function. */
38 struct user_regs regs; /* The registers are actually stored. */
39 int u_fpvalid; /* True if math co-processor being used. */
40
41/* The rest of this junk is to help gdb figure out what goes where. */
42 unsigned long int u_tsize; /* Text segment size (pages). */
43 unsigned long int u_dsize; /* Data segment size (pages). */
44 unsigned long int u_ssize; /* Stack segment size (pages). */
45 unsigned long start_code; /* Starting virtual address of text. */
46 unsigned long start_stack; /* Starting virtual address of stack area.
47 This is actually the bottom of the stack
48 the top of the stack is always found in
49 the esp register. */
50 long int signal; /* Signal that caused the core dump. */
51 int reserved; /* No longer used. */
52 struct user_regs * u_ar0; /* Used by gdb to help find the values
53 for the registers. */
54 unsigned long magic; /* To uniquely identify a core file. */
55 char u_comm[32]; /* User command that was responsible. */
56 struct user_fpregs u_fp;
57 struct user_fpregs* u_fpstate; /* Math Co-processor pointer. */
58};
59
60#endif /* _SYS_USER_H */