arm64: compat: Check for AArch32 state
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 18 Apr 2016 09:28:37 +0000 (10:28 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 20 Apr 2016 11:22:42 +0000 (12:22 +0100)
commit643d703d2d2dbf8e2f16efa0a6a32b1eca101d02
tree5dc230cc9dc4d09fd679570c2090bec3c952b97a
parent042446a31e3803d81c7e618dd80928dc3dce70c5
arm64: compat: Check for AArch32 state

Make sure we have AArch32 state available for running COMPAT
binaries and also for switching the personality to PER_LINUX32.

Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
[ Added cap bit, checks for HWCAP, personality ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Tested-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/elf.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/sys.c