add experimental aarch64 support
[uclibc-ng.git] / libc / sysdeps / linux / aarch64 / sys / ucontext.h
blobd174588962503172a775f049c056106ba4ee4000
1 /* Copyright (C) 1998-2016 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
7 License as published by the Free Software Foundation; either
8 version 2.1 of the 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 /* System V/AArch64 ABI compliant context switching support. */
21 #ifndef _SYS_UCONTEXT_H
22 #define _SYS_UCONTEXT_H 1
24 #include <features.h>
25 #include <signal.h>
27 #include <sys/procfs.h>
29 typedef elf_greg_t greg_t;
31 /* Container for all general registers. */
32 typedef elf_gregset_t gregset_t;
34 /* Structure to describe FPU registers. */
35 typedef elf_fpregset_t fpregset_t;
37 /* Context to describe whole processor state. This only describes
38 the core registers; coprocessor registers get saved elsewhere
39 (e.g. in uc_regspace, or somewhere unspecified on the stack
40 during non-RT signal handlers). */
41 typedef struct sigcontext mcontext_t;
43 /* Userlevel context. */
44 typedef struct ucontext
46 unsigned long uc_flags;
47 struct ucontext *uc_link;
48 stack_t uc_stack;
49 __sigset_t uc_sigmask;
50 mcontext_t uc_mcontext;
51 } ucontext_t;
53 #endif /* sys/ucontext.h */