Skip to content

Commit 0e93eca

Browse files
committed
ARC: entry: EV_MachineCheck dont re-read ECR
Signed-off-by: Vineet Gupta <[email protected]>
1 parent 6b606c8 commit 0e93eca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/arc/kernel/entry.S

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,15 @@ END(instr_service)
9595

9696
ENTRY(EV_MachineCheck)
9797

98-
EXCEPTION_PROLOGUE
98+
EXCEPTION_PROLOGUE ; ECR returned in r10
9999

100-
lr r2, [ecr]
101100
lr r0, [efa]
102101
mov r1, sp
103102

104103
; MC excpetions disable MMU
105104
ARC_MMU_REENABLE r3
106105

107-
lsr r3, r2, 8
106+
lsr r3, r10, 8
108107
bmsk r3, r3, 7
109108
brne r3, ECR_C_MCHK_DUP_TLB, 1f
110109

0 commit comments

Comments
 (0)