OSDN Git Service

arm64: ptrace: map SPSR_ELx<->PSR for compat tasks
authorMark Rutland <mark.rutland@arm.com>
Thu, 5 Jul 2018 14:16:51 +0000 (15:16 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 5 Jul 2018 16:24:14 +0000 (17:24 +0100)
commit76fc52bd07d3e9cb708f1a50b60c825c96acd606
tree02e3ae3a9a2244cb74504f72b63cebcd99ca88ba
parent25dc2c80cfa33153057aa94984855acd57adf92a
arm64: ptrace: map SPSR_ELx<->PSR for compat tasks

The SPSR_ELx format for exceptions taken from AArch32 is slightly
different to the AArch32 PSR format.

Map between the two in the compat ptrace code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Fixes: 7206dc93a58fb764 ("arm64: Expose Arm v8.4 features")
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/ptrace.c