summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/uapi/asm
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-03-06 23:14:49 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2024-03-07 17:14:53 +0000
commit8c46def44409fc914278630b7ba5ac142ab7c4f4 (patch)
tree56012336f6642b68d5aa5be7f39261323ad25274 /arch/arm64/include/uapi/asm
parent203f2b95a882dc46dd9873562167db69a1f61711 (diff)
downloadlinux-8c46def44409fc914278630b7ba5ac142ab7c4f4.tar.gz
linux-8c46def44409fc914278630b7ba5ac142ab7c4f4.tar.bz2
linux-8c46def44409fc914278630b7ba5ac142ab7c4f4.zip
arm64/signal: Add FPMR signal handling
Expose FPMR in the signal context on systems where it is supported. The kernel validates the exact size of the FPSIMD registers so we can't readily add it to fpsimd_context without disruption. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240306-arm64-2023-dpisa-v5-4-c568edc8ed7f@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm')
-rw-r--r--arch/arm64/include/uapi/asm/sigcontext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/sigcontext.h b/arch/arm64/include/uapi/asm/sigcontext.h
index f23c1dc3f002..8a45b7a411e0 100644
--- a/arch/arm64/include/uapi/asm/sigcontext.h
+++ b/arch/arm64/include/uapi/asm/sigcontext.h
@@ -152,6 +152,14 @@ struct tpidr2_context {
__u64 tpidr2;
};
+/* FPMR context */
+#define FPMR_MAGIC 0x46504d52
+
+struct fpmr_context {
+ struct _aarch64_ctx head;
+ __u64 fpmr;
+};
+
#define ZA_MAGIC 0x54366345
struct za_context {