]> 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)
commit9790135519e3f0ae2cfd144461064690f1fd3df5
tree168c3b4301ef6dedf1f9dbf73779986a49d934ca
parentbd960f4d1ed556a965d9c18fc7f104a9b2dedc65
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