aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2019-09-16 10:54:34 -0700
committerVineet Gupta <vgupta@kernel.org>2021-08-24 14:25:48 -0700
commita79a9c765f95a73e087f11f0994297cd69987bda (patch)
treea76971e8a4129756a0c31b176654934c883b5c7b /arch/arc/include
parentARC: mm: move MMU specific bits out of ASID allocator (diff)
downloadlinux-dev-a79a9c765f95a73e087f11f0994297cd69987bda.tar.xz
linux-dev-a79a9c765f95a73e087f11f0994297cd69987bda.zip
ARC: mm: move MMU specific bits out of entry code ...
... to avoid polluting shared entry code (across three ISA variants) with ISA/MMU specific code. Cc: Jose Abreu <joabreu@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/include')
-rw-r--r--arch/arc/include/asm/mmu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h
index c8b490175eae..e66e1e417694 100644
--- a/arch/arc/include/asm/mmu.h
+++ b/arch/arc/include/asm/mmu.h
@@ -84,6 +84,14 @@ static inline int is_pae40_enabled(void)
extern int pae40_exist_but_not_enab(void);
+#else
+
+.macro ARC_MMU_REENABLE reg
+ lr \reg, [ARC_REG_PID]
+ or \reg, \reg, MMU_ENABLE
+ sr \reg, [ARC_REG_PID]
+.endm
+
#endif /* !__ASSEMBLY__ */
#endif