summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch')
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch
deleted file mode 100644
index 462fdba2ed..0000000000
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 0dede80d25ae2005f8af7235809fc09a7c47c62e Mon Sep 17 00:00:00 2001
2From: Dave Martin <Dave.Martin@arm.com>
3Date: Tue, 11 Dec 2018 19:26:46 +0000
4Subject: [PATCH 2/3] arm64/sve: ptrace: Fix SVE_PT_REGS_OFFSET definition
5
6SVE_PT_REGS_OFFSET is supposed to indicate the offset for skipping
7over the ptrace NT_ARM_SVE header (struct user_sve_header) to the
8start of the SVE register data proper.
9
10However, currently SVE_PT_REGS_OFFSET is defined in terms of struct
11sve_context, which is wrong: that structure describes the SVE
12header in the signal frame, not in the ptrace regset.
13
14This patch fixes the definition to use the ptrace header structure
15struct user_sve_header instead.
16
17By good fortune, the to structures are the same size anyway, so
18there is no functional or ABI change.
19
20Signed-off-by: Dave Martin <Dave.Martin@arm.com>
21Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
22
23Upstream-Status: Submitted [https://www.spinics.net/lists/arm-kernel/msg694800.html]
24---
25 arch/arm64/include/uapi/asm/ptrace.h | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h
29index 98c4ce55d9c3..ad64d2c92ef5 100644
30--- a/arch/arm64/include/uapi/asm/ptrace.h
31+++ b/arch/arm64/include/uapi/asm/ptrace.h
32@@ -130,7 +130,7 @@ struct user_sve_header {
33
34 /* Offset from the start of struct user_sve_header to the register data */
35 #define SVE_PT_REGS_OFFSET \
36- ((sizeof(struct sve_context) + (SVE_VQ_BYTES - 1)) \
37+ ((sizeof(struct user_sve_header) + (SVE_VQ_BYTES - 1)) \
38 / SVE_VQ_BYTES * SVE_VQ_BYTES)
39
40 /*
41--
422.5.0
43