summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/entry.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-08-07 13:43:06 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2018-09-14 17:46:17 +0100
commit0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34 (patch)
tree19c947d9efc758b44a4e23cf7b6984669a761324 /arch/arm64/kernel/entry.S
parent2d1b2a91d56b19636b740ea70c8399d1df249f20 (diff)
downloadtalos-op-linux-0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34.tar.gz
talos-op-linux-0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34.zip
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>
Diffstat (limited to 'arch/arm64/kernel/entry.S')
-rw-r--r--arch/arm64/kernel/entry.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 09dbea221a27..8556876c9109 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -589,7 +589,7 @@ el1_undef:
inherit_daif pstate=x23, tmp=x2
mov x0, sp
bl do_undefinstr
- ASM_BUG()
+ kernel_exit 1
el1_dbg:
/*
* Debug exception handling
OpenPOWER on IntegriCloud