arm64: ptrace: make structure padding explicit for debug registers
commit7797d17c591ae62c6f43c6de4fdb8beeb50eb692
authorWill Deacon <will.deacon@arm.com>
Thu, 11 Oct 2012 11:10:57 +0000 (11 12:10 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 18 Oct 2012 19:15:31 +0000 (18 20:15 +0100)
tree168c3b4301ef6dedf1f9dbf73779986a49d934ca
parent16dd46bb781a1d37eeb2377e8e48276e9d14d15d
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>
arch/arm64/include/uapi/asm/ptrace.h
arch/arm64/kernel/ptrace.c