]> git.ipfire.org Git - thirdparty/glibc.git/blob - ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
9b41d985f460e35c08d34e58eb62d11431b293b5
[thirdparty/glibc.git] / ports / sysdeps / unix / sysv / linux / aarch64 / sys / ucontext.h
1 /* Copyright (C) 1998-2013 Free Software Foundation, Inc.
2
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 /* System V/AArch64 ABI compliant context switching support. */
20
21 #ifndef _SYS_UCONTEXT_H
22 #define _SYS_UCONTEXT_H 1
23
24 #include <features.h>
25 #include <signal.h>
26 #include <sys/procfs.h>
27
28 /* We need the signal context definitions even if they are not used
29 included in <signal.h>. */
30 #include <bits/sigcontext.h>
31
32 typedef int greg_t;
33
34 /* Container for all general registers. */
35 typedef elf_gregset_t gregset_t;
36
37 /* Structure to describe FPU registers. */
38 typedef elf_fpregset_t fpregset_t;
39
40 /* Context to describe whole processor state. This only describes
41 the core registers; coprocessor registers get saved elsewhere
42 (e.g. in uc_regspace, or somewhere unspecified on the stack
43 during non-RT signal handlers). */
44 typedef struct sigcontext mcontext_t;
45
46 /* Userlevel context. */
47 typedef struct ucontext
48 {
49 unsigned long uc_flags;
50 struct ucontext *uc_link;
51 stack_t uc_stack;
52 __sigset_t uc_sigmask;
53 mcontext_t uc_mcontext;
54 } ucontext_t;
55
56 #endif /* sys/ucontext.h */