1 /* Copyright (C) 1998-2024 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
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.
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
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <https://www.gnu.org/licenses/>. */
21 #include <asm/ptrace.h>
24 /* asm/ptrace.h pollutes the namespace. */
27 #undef PTRACE_GETFPREGS
28 #undef PTRACE_SETFPREGS
29 #undef PTRACE_GETFDPIC
30 #undef PTRACE_GETFDPIC_EXEC
31 #undef PTRACE_GETFDPIC_INTERP
32 #undef PTRACE_GETDSPREGS
33 #undef PTRACE_SETDSPREGS
35 typedef unsigned long elf_greg_t
;
37 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
38 typedef elf_greg_t elf_gregset_t
[ELF_NGREG
];
40 struct user_fpu_struct
42 unsigned long fp_regs
[16];
43 unsigned long xfp_regs
[16];
47 typedef struct user_fpu_struct elf_fpregset_t
;
52 struct user_fpu_struct fpu
;
57 unsigned long start_code
;
58 unsigned long start_data
;
59 unsigned long start_stack
;
62 struct user_fpu_struct
*u_fpstate
;
67 #endif /* sys/user.h */