diff options
author | Vineet Gupta <vgupta@kernel.org> | 2019-09-16 19:54:34 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2021-08-24 23:25:48 +0200 |
commit | a79a9c765f95a73e087f11f0994297cd69987bda (patch) | |
tree | a76971e8a4129756a0c31b176654934c883b5c7b /arch/arc/include | |
parent | ARC: mm: move MMU specific bits out of ASID allocator (diff) | |
download | linux-a79a9c765f95a73e087f11f0994297cd69987bda.tar.xz linux-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.h | 8 |
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 |