arm64: entry: Allow handling of undefined instructions from EL1
authorWill Deacon <will.deacon@arm.com>
Tue, 7 Aug 2018 12:43:06 +0000 (13:43 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 14 Sep 2018 16:46:17 +0000 (17:46 +0100)
commit0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34
tree19c947d9efc758b44a4e23cf7b6984669a761324
parent2d1b2a91d56b19636b740ea70c8399d1df249f20
arm64: entry: Allow handling of undefined instructions from EL1

Rather than panic() when taking an undefined instruction exception from
EL1, allow a hook to be registered in case we want to emulate the
instruction, like we will for the SSBS PSTATE manipulation instructions.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S
arch/arm64/kernel/traps.c