Skip to content

Commit e297cf5

Browse files
vineetgarcSergey Matyukevich
authored andcommitted
ARC: entry: move MMU specific bits out of entry code
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent fd327df commit e297cf5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/arc/kernel/entry.S

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ ENTRY(EV_MachineCheck)
100100
lr r0, [efa]
101101
mov r1, sp
102102

103-
; MC excpetions disable MMU
104-
ARC_MMU_REENABLE r3
105-
106103
lsr r3, r10, 8
107104
bmsk r3, r3, 7
108105
brne r3, ECR_C_MCHK_DUP_TLB, 1f

arch/arc/mm/tlb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
237237
}
238238
}
239239

240+
/* Re-enable MMU as hardware may have auto-disabled it upon exception */
241+
write_aux_reg(ARC_REG_PID, read_aux_reg(ARC_REG_PID) | MMU_ENABLE);
242+
240243
local_irq_restore(flags);
241244
}
242245

0 commit comments

Comments
 (0)