summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2020-05-20 09:52:45 +0200
committerVineet Gupta <vgupta@kernel.org>2023-08-18 05:31:59 +0200
commit0e93ecaeebd5d0f189d1fa50a614ac0816a8c703 (patch)
treecea8fc490ddaa6a82f5785524f93f5212eff8f43 /arch/arc
parentARC: entry: ARcompact EV_ProtV to use r10 directly (diff)
downloadlinux-0e93ecaeebd5d0f189d1fa50a614ac0816a8c703.tar.xz
linux-0e93ecaeebd5d0f189d1fa50a614ac0816a8c703.zip
ARC: entry: EV_MachineCheck dont re-read ECR
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/entry.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
index f291fc8476d7..46582fbebcf2 100644
--- a/arch/arc/kernel/entry.S
+++ b/arch/arc/kernel/entry.S
@@ -95,16 +95,15 @@ END(instr_service)
ENTRY(EV_MachineCheck)
- EXCEPTION_PROLOGUE
+ EXCEPTION_PROLOGUE ; ECR returned in r10
- lr r2, [ecr]
lr r0, [efa]
mov r1, sp
; MC excpetions disable MMU
ARC_MMU_REENABLE r3
- lsr r3, r2, 8
+ lsr r3, r10, 8
bmsk r3, r3, 7
brne r3, ECR_C_MCHK_DUP_TLB, 1f