aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/uapi/asm/ptrace.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-10-11 12:10:57 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2012-10-18 20:15:31 +0100
commit7797d17c591ae62c6f43c6de4fdb8beeb50eb692 (patch)
tree168c3b4301ef6dedf1f9dbf73779986a49d934ca /arch/arm64/include/uapi/asm/ptrace.h
parent16dd46bb781a1d37eeb2377e8e48276e9d14d15d (diff)
arm64: ptrace: make structure padding explicit for debug registers
The user_hwdebug_state structure contains implicit padding to conform to the alignment requirements of the AArch64 ABI (namely that aggregates must be aligned to their most aligned member). This patch fixes the ptrace functions operating on struct user_hwdebug_state so that the padding is handled correctly. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm/ptrace.h')
-rw-r--r--arch/arm64/include/uapi/asm/ptrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h
index 9b131b4efa0b..6913643bbe54 100644
--- a/arch/arm64/include/uapi/asm/ptrace.h
+++ b/arch/arm64/include/uapi/asm/ptrace.h
@@ -79,13 +79,14 @@ struct user_fpsimd_state {
struct user_hwdebug_state {
__u32 dbg_info;
+ __u32 pad;
struct {
__u64 addr;
__u32 ctrl;
+ __u32 pad;
} dbg_regs[16];
};
-
#endif /* __ASSEMBLY__ */
#endif /* _UAPI__ASM_PTRACE_H */