summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-08-22 11:47:37 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2013-08-22 11:47:37 +0100
commit2600e130b3c90c8d6c13229d3d3a14dcb898a87b (patch)
treed82ddd0faa7a4e07545041c8fba1c03f59064085
parent4370eec05a887b0cd4392cd5dc5b2713174745c0 (diff)
downloadblackbird-op-linux-2600e130b3c90c8d6c13229d3d3a14dcb898a87b.tar.gz
blackbird-op-linux-2600e130b3c90c8d6c13229d3d3a14dcb898a87b.zip
arm64: Enable interrupts in the EL0 undef handler
do_undefinstr() has to be called with interrupts disabled since it may read the instruction from the user address space which could lead to a data abort and subsequent might_sleep() warning in do_page_fault(). Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/kernel/entry.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 6ad781b21c08..57640df9d70c 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -476,6 +476,8 @@ el0_undef:
* Undefined instruction
*/
mov x0, sp
+ // enable interrupts before calling the main handler
+ enable_irq
b do_undefinstr
el0_dbg:
/*
OpenPOWER on IntegriCloud