aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
diff options
context:
space:
mode:
authorCarlos Eduardo Seo <carlos.seo@arm.com>2021-05-27 17:49:20 -0300
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:53 +0100
commit45f35bca7d80322d25f16b4794f812f2e9c7f936 (patch)
treed2a22318b268deeb2489c289680e204730201031 /sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
parent87a680a748e15c9cbb60135760c3fa671feeb797 (diff)
downloadglibc-45f35bca7d80322d25f16b4794f812f2e9c7f936.tar
glibc-45f35bca7d80322d25f16b4794f812f2e9c7f936.tar.gz
glibc-45f35bca7d80322d25f16b4794f812f2e9c7f936.tar.bz2
glibc-45f35bca7d80322d25f16b4794f812f2e9c7f936.zip
aarch64: morello: add purecap ucontext support
Adjust ucontext layout for purecap ABI and add make/get/set/swapcontext implementations accordingly. Note: mcontext layout follows the linux sigcontext struct, in userspace *context functions rely on the c registers stored in the extension area and ignore the mcontext fields for x registers.
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/bits/procfs.h')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/bits/procfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/procfs.h b/sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
index 154fb95e66..596b95e333 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
@@ -33,3 +33,8 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
/* Register set for the floating-point registers. */
typedef struct user_fpsimd_struct elf_fpregset_t;
+
+#ifdef __CHERI_PURE_CAPABILITY__
+/* Register set for the capability registers. */
+typedef struct user_morello_struct elf_cregset_t;
+#endif