]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: ptrace: make structure padding explicit for debug registers
authorWill Deacon <will.deacon@arm.com>
Thu, 11 Oct 2012 11:10:57 +0000 (12:10 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 18 Oct 2012 19:15:31 +0000 (20:15 +0100)
commit35b9c56b17acfe47173728d72ee97dff2aec4c8b
tree168c3b4301ef6dedf1f9dbf73779986a49d934ca
parentd7a22eac971acbb7831dc5f7ed772e518a5c9ad2
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