]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sve: ptrace: Fix SVE_PT_REGS_OFFSET definition
authorDave Martin <Dave.Martin@arm.com>
Fri, 4 Jan 2019 13:09:50 +0000 (13:09 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 4 Jan 2019 13:31:45 +0000 (13:31 +0000)
commit1d3cb3326044210713e674b1eda2dba78ea572e7
tree21f77569f463ef3300e5aea95c14e0b96cca933f
parenta0f315a5f9121e7ce7f795313a3780a259dca95b
arm64/sve: ptrace: Fix SVE_PT_REGS_OFFSET definition

SVE_PT_REGS_OFFSET is supposed to indicate the offset for skipping
over the ptrace NT_ARM_SVE header (struct user_sve_header) to the
start of the SVE register data proper.

However, currently SVE_PT_REGS_OFFSET is defined in terms of struct
sve_context, which is wrong: that structure describes the SVE
header in the signal frame, not in the ptrace regset.

This patch fixes the definition to use the ptrace header structure
struct user_sve_header instead.

By good fortune, the two structures are the same size anyway, so
there is no functional or ABI change.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/uapi/asm/ptrace.h